This project was inspired by https://github.com/carpedm20/emoji , writing in PHP.
- Including large symbol emoji defintions(about 4022 yet, using
cat data/emoji-huge.txt | wc -l
). - Small and tiny, without any depends.
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!
This scripts included the Typecho plugin for showing emoji. You can checkout Plugin.php
file for more details.
- eof -