matecat/emoji-to-entity-converter

Matecat Emoji To Entity converter component

v1.0.8 2024-06-25 14:06 UTC

This package is auto-updated.

Last update: 2024-10-25 14:51:56 UTC


README

Scrutinizer Code Quality Build Status

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