hasanparasteh/emojiji
最新稳定版本:0.0.1
Composer 安装命令:
composer require hasanparasteh/emojiji
包简介
A helper class to manipulate emojis
README 文档
README
I really had problem encoding and decoding emojis from utf-8 to utf-16 and vice versa
So I created this package to help me out. Hope you find it useful too :)
composer require hasanparasteh/emojiji
Example
$sampleU8 = "hello 🏦"; $sampleU16 = mb_convert_encoding("hello 🏦", "UTF-16"); echo 'UTF-16 -> UTF-8 encoded emoji: ' . \HP\Emojiji::to_utf_8($sampleU16) . PHP_EOL; echo 'UTF8 -> UTF-16 encoded emoji: ' . \HP\Emojiji::to_utf_16($sampleU8) . PHP_EOL;
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-06-29