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

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

pooley182/emoji-regex-pattern
=============================

PHP regexp pattern matching Unicode emojis

v16.0(11mo ago)35.2k↓36.1%MITPHPPHP &gt;=7.1.0

Since Jun 25Pushed 11mo ago1 watchersCompare

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

READMEChangelog (7)DependenciesVersions (8)Used By (0)

emoji-regex-pattern
===================

[](#emoji-regex-pattern)

This package for PHP builds a regex pattern that will match any emojis as defined by the Unicode consortium. It's especially useful when validating user submitted data if you want to remove emojis to sanitise your data.

versioning
----------

[](#versioning)

This package does not follow typical symantic versioning rules. Typical version numbering would follow the convention X.Y.Z where X is a major version which denotes breaking changes in the package, Y would be a minor version that introduces new features but doesn't break anything, and Z would be a patch version that fixes up some code without any major changes or new features.

The version numbers of this package follow the versioning numbers of the Unicode Consortiums Emojis. V14.0 of this package will match all emojis within the consortiums V14.0 Emoji set. V15.0 of this package matches the consortiums V15.0 set of emojis. etc.

Therefore we recommend installing this package with `composer require pooley182/emoji-regex-pattern ">=14.0.2"`, this will mean that as new emoji character sets are released your composer package will be updated to match them.

How to use
----------

[](#how-to-use)

### Install

[](#install)

```
composer require pooley182/emoji-regex-pattern ">=14.0.2"
```

### Usage

[](#usage)

```
use Pooley182\EmojiRegexPattern\EmojiRegexPattern;

private function hasEmojis($string) {
    $emojiRegexPattern = '/'.EmojiRegexPattern::getEmojiPattern().'/u';

    preg_match($emojiRegexPattern, $string, $matches);

    return !empty($matches);
}
```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance50

Moderate activity, may be stable

Popularity26

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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 ~179 days

Recently: every ~259 days

Total

7

Last Release

350d ago

Major Versions

v14.0.2 → v15.02022-10-24

v15.1.1 → v16.02025-06-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c1ee5d6c802976fc86a6259e7fa6c42666317775801c0efd7aa22108f404518?d=identicon)[pooley182](/maintainers/pooley182)

---

Top Contributors

[![pooley182](https://avatars.githubusercontent.com/u/5040011?v=4)](https://github.com/pooley182 "pooley182 (11 commits)")

### Embed Badge

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

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

###  Alternatives

[delight-im/base64

Simple and convenient Base64 encoding and decoding for PHP

15158.1k6](/packages/delight-im-base64)[xelson/flarum-ext-chat

Realtime Chat for Flarum!

229.7k](/packages/xelson-flarum-ext-chat)

PHPackages © 2026

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