A simple PHP library for handling Emoji
PHP
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
config Initial commit Dec 5, 2014
src
tests Allow the img HTML markup to be modified. May 21, 2016
.gitignore Compile the emoji index to improve performance. May 21, 2016
.php_cs Compile the emoji index to improve performance. May 21, 2016
.travis.yml Bump PHP version requirement to 5.4 May 21, 2016
LICENSE Added README and LICENSE files. Jan 11, 2015
README.md Added README and LICENSE files. Jan 11, 2015
composer.json Update branch alias May 21, 2016
phpunit.xml.dist Remove unused test bootstrap May 21, 2016

README.md

Emoji

Emoji images from unicode characters and names (i.e. :sunrise:). Built to work with Twemoji images.

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

$ 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

$ phpunit

Credits

License

The MIT License (MIT). Please see License File for more information.