matecat / emoji-to-entity-converter
Matecat Emoji To Entity converter component
Installs: 14 495
Dependents: 2
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 1
Requires
- php: >=7.0
Requires (Dev)
- fzaninotto/faker: ^1.9
- phpunit/phpunit: ^5.7.27
- symfony/console: ^5.4
This package is auto-updated.
Last update: 2024-10-25 14:51:56 UTC
README
Usage
This library provides two methods to convert emojis in their corresponding Unicode Hexadecimal Code entities.
Emoji to entity
// This will return 🫧 Emoji::toEntity("🫧");
Entity to emoji
// This will return 🪥 Emoji::toEmoji("🪥");
Automatic update the emoji map 😀
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
Support
If you found an issue or had an idea please refer to this section.
Authors
License
This project is licensed under the MIT License - see the LICENSE.md file for details