PHP Classes

File: Emoji/

Recommend this page to a friend!
  Classes of Melih Berat SANLI   PHP Emoji Library   Emoji/   Download  
File: Emoji/
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Emoji Library
Convert text to HTML replacing Emojis with images
Author: By
Last change:
Date: 1 year ago
Size: 455 bytes


Class file image Download


Import the library

include "lib/emoji.php";

Using the library


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()