PHPackages                             incenteev/emoji-pattern - 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. incenteev/emoji-pattern

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

incenteev/emoji-pattern
=======================

PHP regexp pattern matching Unicode emojis

v1.4.0(1y ago)10388.5k↓34.4%12MITPHPPHP &gt;=7.4

Since Jul 15Pushed 1y ago4 watchersCompare

[ Source](https://github.com/Incenteev/emoji-pattern)[ Packagist](https://packagist.org/packages/incenteev/emoji-pattern)[ RSS](/packages/incenteev-emoji-pattern/feed)WikiDiscussions main Synced 1mo ago

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

Emoji pattern
=============

[](#emoji-pattern)

This package provides regexp patterns to match Unicode emojis. All forms of emojis are matched, including:

- Single-character emoji (👍)
- Emoji that are variants of other characters (e.g. ⌚️ instead of ⌚︎)
- Fitzpatrick Modifiers (e.g. skintones 👍🏻👍🏼👍🏽👍🏾👍🏿)
- ZWJ Sequences (e.g. 💑)
- Combining sequences and Combining Marks (e.g. 0️⃣)
- Flag sequences (e.g 🇨🇦)

All emojis are derived directly from the standard unicode data files, using an automated script.

[![Total Downloads](https://camo.githubusercontent.com/070ecab94d10c13a99031609c83671e1d03f5053de2c5d3544cba0e7bb8e1e7e/68747470733a2f2f706f7365722e707567782e6f72672f696e63656e746565762f656d6f6a692d7061747465726e2f646f776e6c6f6164732e737667)](https://packagist.org/packages/incenteev/emoji-pattern) [![Latest Stable Version](https://camo.githubusercontent.com/08abdc29dccf181f6b5ed1fcb16e01f433ad8df8286f8d29e70063b08f5aef02/68747470733a2f2f706f7365722e707567782e6f72672f696e63656e746565762f656d6f6a692d7061747465726e2f762f737461626c652e737667)](https://packagist.org/packages/incenteev/emoji-pattern)

Installation
------------

[](#installation)

Use [Composer](https://getcomposer.org) to install the library:

```
$ composer require incenteev/emoji-pattern
```

Usage
-----

[](#usage)

The provided pattern relies on the `u` modifier of PCRE and so works only for UTF-8 strings.

```
use Incenteev\EmojiPattern\EmojiPattern;

$emojiRegexp = '/' . EmojiPattern::getEmojiPattern() . '/u';
```

License
-------

[](#license)

This package is under the [MIT license](LICENSE).

Credits
-------

[](#credits)

The initial version of the package was a port of [SwiftEmoji](https://github.com/nerdyc/SwiftEmoji).

Reporting an issue or a feature request
---------------------------------------

[](#reporting-an-issue-or-a-feature-request)

Issues and feature requests are tracked in the [Github issue tracker](https://github.com/Incenteev/emoji-pattern/issues).

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community14

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~288 days

Total

5

Last Release

613d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/75c5d927b0434111db9720dd78af8c83385cf28bb9aeafd031ba8cb0c4ffc558?d=identicon)[Stof](/maintainers/Stof)

---

Top Contributors

[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (24 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/incenteev-emoji-pattern/health.svg)

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

###  Alternatives

[afragen/git-updater-lite

A simple class to integrate with Git Updater for standalone plugin/theme updates.

201.7k](/packages/afragen-git-updater-lite)[aluguest/ical-easy-reader

An easy to understood class, loads a "ics" format string and returns an array with the traditional iCal fields.

122.7k](/packages/aluguest-ical-easy-reader)

PHPackages © 2026

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