questocat/epic-emoji
Composer 安装命令:
composer require questocat/epic-emoji
包简介
The emoji epic conversion library
关键字:
README 文档
README
The emoji epic conversion library
Installation
Using Composer to add the package to your project's dependencies:
$ composer require questocat/epic-emoji
Usage
$epicEmoji = new EpicEmoji(); // from Apple devices $content = '呜呜,宝宝不开心😔'; $unified = $epicEmoji->unified($content); $unified->emoji(); // output emoji $unified->setText('哇哦👻')->emoji(); // output emoji $unified->withText('哇哦👻')->emoji(); // output emoji $unified->shorthand(); // output shorthand $unified->codepoint(); // output codepoint $unified->html(); // output html $unified->htmlEntity(); // output htmlEntity // convert to DoCoMo devices $docomo = $unified->docomo(); // convert to Softbank & pre-iOS6 Apple devices $softbank = $unified->softbank(); // convert to KDDI & Au devices $kddi = $unified->kddi(); // convert to Google Android devices $google = $unified->google(); $google->emoji(); // output emoji $google->shorthand(); // output shorthand $google->codepoint(); // output codepoint $google->html(); // output html $google->htmlEntity(); // output htmlEntity
Inspiration
Reference
License
Licensed under the MIT license.
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-04-14