https://github.com/questocat/epic-emoji
The emoji epic conversion library
https://github.com/questocat/epic-emoji
apple docomo emoji emoji-convert google kddi php-emoji softbank unified
Last synced: about 1 year ago
JSON representation
The emoji epic conversion library
- Host: GitHub
- URL: https://github.com/questocat/epic-emoji
- Owner: questocat
- License: mit
- Created: 2017-06-28T14:37:05.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-04-14T09:28:04.000Z (about 8 years ago)
- Last Synced: 2025-02-09T22:15:13.238Z (over 1 year ago)
- Topics: apple, docomo, emoji, emoji-convert, google, kddi, php-emoji, softbank, unified
- Language: PHP
- Size: 3.66 MB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# epic-emoji
The emoji epic conversion library
[](https://styleci.io/repos/95678703)
[](https://travis-ci.org/questocat/epic-emoji)
[](https://scrutinizer-ci.com/g/questocat/epic-emoji/?branch=master)
[](https://scrutinizer-ci.com/g/questocat/epic-emoji/?branch=master)
[](https://scrutinizer-ci.com/g/questocat/epic-emoji/build-status/master)
[](https://packagist.org/packages/questocat/epic-emoji)
## Installation
Using [Composer](https://getcomposer.org) to add the package to your project's dependencies:
```bash
$ composer require questocat/epic-emoji
```
## Usage
```php
$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
* [php-emoji](https://github.com/iamcal/php-emoji)
## Reference
* [Emoji introduction](http://www.ruanyifeng.com/blog/2017/04/emoji.html)
* [Emoji wiki](https://en.wikipedia.org/wiki/Emoji)
* [Unicode-org](http://www.unicode.org)
* [Full Emoji List, v5.0](http://www.unicode.org/emoji/charts/full-emoji-list.html)
* [Using Emoji in Web Apps](http://www.iamcal.com/emoji-in-web-apps/)
## License
Licensed under the [MIT license](https://github.com/questocat/epic-emoji/blob/master/LICENSE).