PHPackages                             matecat/emoji-to-entity-converter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. matecat/emoji-to-entity-converter

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

matecat/emoji-to-entity-converter
=================================

Matecat Emoji To Entity converter component

v2.0.0(2mo ago)270.0k↓14.8%2MITPHPPHP &gt;=8.3

Since Apr 22Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/matecat/emoji-to-entity-converter)[ Packagist](https://packagist.org/packages/matecat/emoji-to-entity-converter)[ Docs](https://github.com/matecat/emoji-to-entity-converter)[ RSS](/packages/matecat-emoji-to-entity-converter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (4)Versions (17)Used By (2)

[![Build Status](https://camo.githubusercontent.com/7535d81984a433582cd10b19d5c916739a2dad633c024ca15df5133c64296f39/68747470733a2f2f6170702e7472617669732d63692e636f6d2f6d6174656361742f656d6f6a692d746f2d656e746974792d636f6e7665727465722e7376673f746f6b656e3d7142617a786b4877503138683345576e486a6a46266272616e63683d6d61696e)](https://app.travis-ci.com/matecat/emoji-to-entity-converter)[![Quality Gate Status](https://camo.githubusercontent.com/2cdb287f0c480fb98536dee0b7ff8e903c2569c3d109689e106294624c7a07ce/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6d6174656361745f656d6f6a692d746f2d656e746974792d636f6e766572746572266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/summary/new_code?id=matecat_emoji-to-entity-converter)[![Coverage](https://camo.githubusercontent.com/4cb219f5d041fea5e1de90ee22a7f8a01b0ad674a9e8f6390b7f8434162a9600/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6d6174656361745f656d6f6a692d746f2d656e746974792d636f6e766572746572266d65747269633d636f766572616765)](https://sonarcloud.io/summary/new_code?id=matecat_emoji-to-entity-converter)[![Reliability Rating](https://camo.githubusercontent.com/79f5d6e01f086cfc06081851471b5180c2aa87d9e8a688584561fd1533864d32/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6d6174656361745f656d6f6a692d746f2d656e746974792d636f6e766572746572266d65747269633d72656c696162696c6974795f726174696e67)](https://sonarcloud.io/summary/new_code?id=matecat_emoji-to-entity-converter)[![Maintainability Rating](https://camo.githubusercontent.com/5b816a68b41f02fe4dc9941b34b06360dfafb813180740eda19e52d6a83a07c0/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6d6174656361745f656d6f6a692d746f2d656e746974792d636f6e766572746572266d65747269633d7371616c655f726174696e67)](https://sonarcloud.io/summary/new_code?id=matecat_emoji-to-entity-converter)

Usage
=====

[](#usage)

This library provides two methods to convert emojis in their corresponding Unicode Hexadecimal Code entities.

### Emoji to entity

[](#emoji-to-entity)

```
// This will return &#129767;
Emoji::toEntity("🫧");
```

### Entity to emoji

[](#entity-to-emoji)

```
// This will return 🪥
Emoji::toEmoji("&#129701;");
```

Automatic update the emoji map 😀
--------------------------------

[](#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](https://emoji-api.com/) 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
-------

[](#support)

If you found an issue or had an idea please refer [to this section](https://github.com/matecat/emoji-to-entity-converter/issues).

Authors
-------

[](#authors)

- **Domenico Lupinetti** - [github](https://github.com/ostico)
- **Mauro Cassani** - [github](https://github.com/mauretto78)

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance83

Actively maintained with recent releases

Popularity34

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 51.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~48 days

Recently: every ~54 days

Total

15

Last Release

88d ago

Major Versions

v1.0.12 → v2.0.02026-02-19

PHP version history (3 changes)v1.0.0PHP &gt;=5.6

v1.0.8PHP &gt;=7.0

v2.0.0PHP &gt;=8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/b9a5ee22f08424377759a39efc8bc6db4d0460db2afb97b8d6c950c14a9d5666?d=identicon)[MateCat-bot](/maintainers/MateCat-bot)

---

Top Contributors

[![mauretto78](https://avatars.githubusercontent.com/u/10035321?v=4)](https://github.com/mauretto78 "mauretto78 (16 commits)")[![Ostico](https://avatars.githubusercontent.com/u/8008416?v=4)](https://github.com/Ostico "Ostico (15 commits)")

---

Tags

phpxmlemoji

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/matecat-emoji-to-entity-converter/health.svg)

```
[![Health](https://phpackages.com/badges/matecat-emoji-to-entity-converter/health.svg)](https://phpackages.com/packages/matecat-emoji-to-entity-converter)
```

###  Alternatives

[m1/vars

Vars is a simple to use and easily extendable configuration loader with in built loaders for ini, json, PHP, toml, XML and yaml/yml file types. It also comes with in built support for Silex and more frameworks to come soon.

69124.2k1](/packages/m1-vars)[goetas/xsd2php-runtime

Convert XSD (XML Schema) definitions into PHP classes

493.3k](/packages/goetas-xsd2php-runtime)[bupy7/xml-constructor

The array-like constructor of XML document structure.

1337.9k](/packages/bupy7-xml-constructor)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
