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()
|
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 |
|
|
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.
|
Files |
|
File |
Role |
Description |
demo (1 file, 1 directory) |
lib (1 file) |
README.md |
Doc. |
Documentation |
File |
Role |
Description |
emoji.php |
Class |
Class source |