Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heyupdate/Emoji
A simple PHP library for handling Emoji
https://github.com/heyupdate/Emoji
Last synced: 3 months ago
JSON representation
A simple PHP library for handling Emoji
- Host: GitHub
- URL: https://github.com/heyupdate/Emoji
- Owner: heyupdate
- License: mit
- Created: 2014-12-05T20:41:43.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-15T20:36:17.000Z (over 7 years ago)
- Last Synced: 2024-02-21T17:22:52.367Z (4 months ago)
- Language: PHP
- Homepage:
- Size: 176 KB
- Stars: 56
- Watchers: 7
- Forks: 11
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-php-zh_CN - Emoji - 一个把Unicode字符和名称转换为表情符号图片的库 (标记 Markup)
- awesome-php - Emoji - 一个简单的处理emoji的类库 (标记( Markup ))
- awesome-php - Emoji - A library that converts unicode characters and names into emoji images. (Markup)
- awesome-php-new - Emoji - A library that converts unicode characters and names into emoji images. (Table of Contents / Markup)
- awesome-php - Emoji - A library that converts unicode characters and names into emoji images. (Markup)
- awesome-php - Emoji - A library that converts unicode characters and names into emoji images. (Table of Contents / Markup)
- awesome-php - Emoji - A library that converts unicode characters and names into emoji images. (Table of Contents / Markup)
- awesome-stripe - Emoji - A library that converts unicode characters and names into emoji images. (Table of Contents / Markup)
- PHP_awesome-directus-duh-REKT-iss- - Emoji - A library that converts unicode characters and names into emoji images. (Table of Contents / Markup)
- awesome-php - Emoji - 一个简单的处理emoji的类库 (URL)
- awesome-php - Emoji - A library that converts unicode characters and names into emoji images. (Table of Contents / Markup)
- awesome-php - heyupdate/Emoji - 一个简单的处理emoji的类库 (标记( Markup ))
README
# Emoji
Emoji images from unicode characters and names (i.e. `:sunrise:`).
Built to work with [Twemoji images](http://twitter.github.io/twemoji/).``` php
use HeyUpdate\Emoji\Emoji;
use HeyUpdate\Emoji\EmojiIndex;$emoji = new Emoji(new EmojiIndex(), '//twemoji.maxcdn.com/36x36/%s.png');
$emoji->replaceEmojiWithImages('🎈 :balloon:');
```## Install
Via Composer
``` bash
$ composer require heyupdate/emoji
```## Requirements
The following versions of PHP are supported by this version.
* PHP 5.3
* PHP 5.4
* PHP 5.5
* PHP 5.6## Testing
``` bash
$ phpunit
```## Credits
- [Tom Graham](https://github.com/tompedals)
## License
The MIT License (MIT). Please see [License File](https://github.com/heyupdate/Emoji/blob/master/LICENSE) for more information.