A PHP library for converting emoji between native mobile formats and HTML display.
php-emoji is a PHP library for processing emoji characters, enabling conversion between various native mobile formats (like DoCoMo, KDDI, Softbank, Google) and a unified format. It solves the problem of inconsistent emoji representation across different platforms by providing standardized conversion functions and HTML rendering capabilities.
PHP developers building applications that handle user-generated content from mobile devices, especially those needing cross-platform emoji compatibility in messaging, social features, or content management systems.
It offers a lightweight, focused solution for emoji conversion without external dependencies, using reliable emoji-data as its backend and providing simple functions for bidirectional format translation and HTML display.
A PHP Emoji conversion library
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Offers dedicated conversion functions for obsolete mobile platforms like DoCoMo, KDDI, and pre-iOS6 Apple, as demonstrated in the usage examples for bidirectional processing.
Includes CSS and PNG sprite sheets out-of-the-box for consistent emoji display in web apps, minimizing setup effort for basic rendering needs.
Enables seamless normalization to a unified format for storage and reconversion to native formats for device compatibility, supporting robust emoji pipelines.
Provides emoji_contains_emoji() for easy identification of emoji in text, useful for validation or conditional processing without custom regex.
Only supports UTF-8 encoding, explicitly leaving out JIS or Shift-JIS data, which restricts its use in projects with legacy Japanese text systems.
Heavily targets deprecated mobile formats from the 2000s, making it less relevant for modern apps that primarily deal with standard Unicode emoji from recent iOS/Android versions.
Relies on PNG sprite sheets for HTML output, resulting in fixed-size images that lack scalability and performance compared to modern SVG or font-based solutions.