Emoji for PHP
This library allows the handling and conversion of Emoji in PHP.
You can download a zipfile of the latest code, which contains a helpful readme file.
If you want to browse the code, it's in a public GitHub repo.
Example
<?php
include('emoji.php');
# browser sniffing tells us that a docomo phone
# submitted this text
$clean_text = emoji_docomo_to_unified($_POST[message]);
...
# now we want to show it in a desktop browser
$html = emoji_unified_to_html($clean_text);
?>
WTF is this crap?
Ahh, young grasshopper. You might want to read this first.
This library allows the handling and conversion of Emoji in PHP.
You can download a zipfile of the latest code, which contains a helpful readme file.
If you want to browse the code, it's in a public GitHub repo.
Example
<?php
include('emoji.php');
# browser sniffing tells us that a docomo phone
# submitted this text
$clean_text = emoji_docomo_to_unified($_POST[message]);
...
# now we want to show it in a desktop browser
$html = emoji_unified_to_html($clean_text);
?>
WTF is this crap?
Ahh, young grasshopper. You might want to read this first.