Skip to content

mingcheng/php-emojify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Emojify - The PHP Port of Emojify

screenshots

This project was inspired by https://github.com/carpedm20/emoji , writing in PHP.

Feature

  • Including large symbol emoji defintions(about 4022 yet, using cat data/emoji-huge.txt | wc -l).
  • Small and tiny, without any depends.

Usage

For more usage u can checkout example/usage.php file, basic usage:

require __DIR__ . "/../Emojify.inc.php";

$text = "Hey, I just :raising_hand: you, and this is :scream: , but here's my :calling: , so :telephone_receiver: me, maybe?";

$emojify = new Emojify();
$encoded = $emojify->encode($text);
echo $encoded . "\n";
echo $emojify->decode($encoded);

That's it!

Typecho Plugin

This scripts included the Typecho plugin for showing emoji. You can checkout Plugin.php file for more details.

- eof -

About

PHP Emojify - The PHP Port of Emojify

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages