PHPackages                             deniskorbakov/emoji-php - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. deniskorbakov/emoji-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

deniskorbakov/emoji-php
=======================

Library for Emoji in PHP - replacement, search, transformation by CLDR

v0.2.1(7mo ago)837[1 issues](https://github.com/deniskorbakov/emoji-php/issues)MITPHPPHP &gt;=8.4CI passing

Since Sep 6Pushed 2w ago1 watchersCompare

[ Source](https://github.com/deniskorbakov/emoji-php)[ Packagist](https://packagist.org/packages/deniskorbakov/emoji-php)[ RSS](/packages/deniskorbakov-emoji-php/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (7)Versions (17)Used By (0)

Emoji PHP
=========

[](#emoji-php)

[![GitHub Workflow Status](https://github.com/deniskorbakov/emoji-php/actions/workflows/lint.yml/badge.svg)](https://github.com/deniskorbakov/emoji-php)[![GitHub Workflow Status](https://github.com/deniskorbakov/emoji-php/actions/workflows/tests.yml/badge.svg)](https://github.com/deniskorbakov/emoji-php)[![Total Downloads](https://camo.githubusercontent.com/c38c0350f09b74adcc06e263e8841ec05b68bb8ad9c1f439a2483c97f5dac150/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64656e69736b6f7262616b6f762f656d6f6a692d706870)](https://packagist.org/packages/deniskorbakov/emoji-php)[![Latest Version](https://camo.githubusercontent.com/03b09fb073e531c9dfc8d688a4ea44c1bb8ef38d63dc47d6a6d2d43b0466154d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64656e69736b6f7262616b6f762f656d6f6a692d706870)](https://packagist.org/packages/deniskorbakov/emoji-php)[![License](https://camo.githubusercontent.com/63d9c3fabae69bcada4ba3c18f2cf493722f9210009ccec30c19db12fe240094/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f64656e69736b6f7262616b6f762f656d6f6a692d706870)](https://packagist.org/packages/deniskorbakov/emoji-php)

✨ Supports CLDR emoticon storage standard

🌏 Multilingual search from 25 languages

🪄 Replacing unicode emoticons in CLDR format and vice versa

@ This library uses a database of emoticons from - [link](https://github.com/milesj/emojibase)

📝 Getting Started
-----------------

[](#-getting-started)

Install the package via composer:

```
composer require deniskorbakov/emoji-php
```

Now you can use the class with emoticons:

```
use DenisKorbakov\EmojiPhp\Emojis;

new Emojis();
```

Below we will consider the functionality of this class.

📖 Examples &amp; Usage
----------------------

[](#-examples--usage)

This method outputs a grouping of emoticons with a cldr code based on the selected language

```
use DenisKorbakov\EmojiPhp\Emojis;
use DenisKorbakov\EmojiPhp\Locale;

new Emojis()->list(Locale::EN);
// return ['smileys & emotion' => ['😀' => ':grinning_face:', ...]]
```

---

This method converts the unicode of the emoji to the cldr code

```
use DenisKorbakov\EmojiPhp\Emojis;

$text = 'Hello, world! 🌍️'

new Emojis()->toCode($text);
// return 'Hello, world! :globe_showing_europe_africa:'
```

---

This method converts the one unicode emoji to the cldr code

```
use DenisKorbakov\EmojiPhp\Emojis;

$emoji = '🌍'

new Emojis()->codeByEmoji($text);
// return ':globe_showing_europe_africa:'
```

---

This method converts from cldr code with text to unicode emojis

```
use DenisKorbakov\EmojiPhp\Emojis;

$text = 'Hello :waving_hand:';

new Emojis()->toEmoji($text);
// return 'Hello 👋'
```

---

This method converts one cldr code to unicode emoji

```
use DenisKorbakov\EmojiPhp\Emojis;

$text = ':waving_hand:';

new Emojis()->emojiByCode($text);
// return '👋'
```

---

This method searches for emoticons by the word, and you also explicitly specify which language to search in

```
use DenisKorbakov\EmojiPhp\Emojis;
use DenisKorbakov\EmojiPhp\Locale;

$searchText = 'shoe'

new Emojis()->search(Locale::EN, $searchText);
// return ['👞' => ':mans_shoe:', ...]
```

⚒️ Local Development
--------------------

[](#️-local-development)

Clone this repository:

```
git clone https://github.com/deniskorbakov/emoji-php
```

Let's go to the cloned repository:

```
cd emoji-php
```

To start, initialize the project and use it:

```
make init
```

🧪 Testing
---------

[](#-testing)

You can run the command for testing after the step with local installation

Run Lint and Analyze code(phpstan/rector/phpcs):

```
make lint
```

Run Unit tests:

```
make test
```

Run test coverage:

```
make test-coverage
```

🤝 Feedback
----------

[](#-feedback)

We appreciate your support and look forward to making our product even better with your help!

[@Denis Korbakov](https://github.com/deniskorbakov)

---

📝 Generated from [deniskorbakov/skeleton-php-docker](https://github.com/deniskorbakov/skeleton-php-docker)

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance80

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.4% 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 ~5 days

Recently: every ~19 days

Total

16

Last Release

218d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/110344775?v=4)[Denis](/maintainers/deniskorbakov)[@deniskorbakov](https://github.com/deniskorbakov)

---

Top Contributors

[![deniskorbakov](https://avatars.githubusercontent.com/u/110344775?v=4)](https://github.com/deniskorbakov "deniskorbakov (190 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (5 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

---

Tags

cldremojiemoji-phpphpsmileysphpcldremoji

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/deniskorbakov-emoji-php/health.svg)

```
[![Health](https://phpackages.com/badges/deniskorbakov-emoji-php/health.svg)](https://phpackages.com/packages/deniskorbakov-emoji-php)
```

###  Alternatives

[unicodeveloper/laravel-emoji

A Laravel 5 Package for Using &amp; Working With Emojis

20925.1k](/packages/unicodeveloper-laravel-emoji)[symfony/emoji

Provides access to emoji characters and sequences from the Unicode CLDR

131.1M20](/packages/symfony-emoji)[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21623.4k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

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