PHP Classes

File: Emoji/README.md

Recommend this page to a friend!
  Classes of Melih Berat SANLI   PHP Emoji Library   Emoji/README.md   Download  
File: Emoji/README.md
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: 2 years ago
Size: 455 bytes
 

Contents

Class file image Download

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