incenteev/emoji-pattern 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

incenteev/emoji-pattern

最新稳定版本:v1.4.0

Composer 安装命令:

composer require incenteev/emoji-pattern

包简介

PHP regexp pattern matching Unicode emojis

README 文档

README

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 Latest Stable Version

Installation

Use Composer to install the library:

$ composer require incenteev/emoji-pattern

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

This package is under the MIT license.

Credits

The initial version of the package was a port of SwiftEmoji.

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker.

统计信息

  • 总下载量: 360.94k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 3
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 4
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固