PHP Classes

PHP Emoji Library: Convert text to HTML replacing Emojis with images

Recommend this page to a friend!

  Author Author  
Picture of Melih Berat SANLI
Name: Melih Berat SANLI <contact>
Classes: 2 packages by
Country: Turkey Turkey


  Detailed description   Download Download .zip .tar.gz  
This class can convert text to HTML, replacing Emojis with images.

It can take a given text and convert it to HTML.

The class can also replace Emoji text sequences with associated image icons.

This package also provides the Emoji icon image files.

Details

Emoji

Import the library

include "lib/emoji.php";

Using the library

mbsEmoji::using($TEXT);

Definition Theme

mbsEmoji::attr('theme', '< img src="%s" alt="%s" class="my_emoji">'); 

Please using two %s

Defination Directory

mbsEmoji::attr('directory', 'your/image/file/'); 

Defination Your Smiles

$yourSmiles = array( 'xD' => 'eksdi.png' );
mbsEmoji::attr('smiles', $yourSmiles);

  • Make definitions before mbsEmoji::using()

  Classes of Melih Berat SANLI  >  PHP Emoji Library  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: PHP Emoji Library
Base name: php-emoji-library
Description: Convert text to HTML replacing Emojis with images
Version: -
PHP version: 5
License: The PHP License
 
  Groups   Applications   Files Files  

  Groups  
Group folder image HTML HTML generation and processing View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Graphics Colors, images, charts and picture formats View top rated classes
Group folder image Text processing Manipulating and validating text data View top rated classes


  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Files folder imageEmoji (1 file, 2 directories)
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file README.rst Doc. Documentation

  Files folder image Files  /  Emoji  
File Role Description
Files folder imagedemo (1 file, 1 directory)
Files folder imagelib (1 file)
  Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  Emoji  /  demo  
File Role Description
Files folder imageemoticons (10 files)
  Accessible without login Plain text file index.php Doc. Example script

  Files folder image Files  /  Emoji  /  demo  /  emoticons  
File Role Description
  Accessible without login Image file angry.png Icon Icon image
  Accessible without login Image file cry.png Icon Icon image
  Accessible without login Image file devil.png Icon Icon image
  Accessible without login Image file kiss.png Icon Icon image
  Accessible without login Image file laugh.png Icon Icon image
  Accessible without login Image file love.png Icon Icon image
  Accessible without login Image file sad.png Icon Icon image
  Accessible without login Image file sleepy.png Icon Icon image
  Accessible without login Image file smile.png Icon Icon image
  Accessible without login Image file wink.png Icon Icon image

  Files folder image Files  /  Emoji  /  lib  
File Role Description
  Plain text file emoji.php Class Class source

Download Download all files: php-emoji-library.tar.gz php-emoji-library.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
For more information send a message to info at phpclasses dot org.