This library provides two methods to convert emojis in their corresponding Unicode Hexadecimal Code entities.
// This will return 🫧
Emoji::toEntity("🫧");
// This will return 🪥
Emoji::toEmoji("🪥");
An automated tool is provided by the library to update the emoji map.
It is based on the Open Emoji Map project and all credit goes to its author.
First, you need to install all the dev dependencies. Afterwards, obtain your Open Emoji Map API key, copy the contents of credentials.dist.ini
file into credentials.ini
and insert the key.
Subsequently, enter the following command in your terminal:
php bin/console emoji:update
If you found an issue or had an idea please refer to this section.
This project is licensed under the MIT License - see the LICENSE.md file for details