Releases: aaronpk/emoji-detector-php
Releases · aaronpk/emoji-detector-php
Updates for Emoji 15.1
This version requires at least PHP 7.4!
Changes:
- Updates the bundled emoji files to Emoji 15.1 (Sep 2023)
- Includes new map files from short name to emoji (See #16)
- Fixed non-qualified emoji with skin tone modifiers
- Internally, this no longer uses a regex to search for emoji!
Updates for Emoji 15.0
Changes:
- Updates the bundled emoji files to Emoji 15.0
- Added
remove_emoji
function - Added
php-intl
dependency tocomposer.json
Updates for Emoji 14.0
Changes:
- Updates the bundled emoji files to Emoji 14.0
- Changes the byte offset information to plain byte offsets and grapheme offsets
Updates for Emoji 13.1
This release includes:
- Updates the bundled emoji files to Emoji 13.1
- Adds information about the byte offsets of the emoji found in the string
- Adds a function to replace emoji with the text equivalent
The Emoji\replace_emoji
function replaces the emoji with the text equivalent. You can pass a prefix and suffix to the function as well:
Emoji\replace_emoji('I like 🌮 and 🌯');
// I like taco and burrito
Emoji\replace_emoji('I like 🌮 and 🌯', ':', ':');
// I like :taco: and :burrito:
Updates for new emoji
- Uses emoji data from https://github.com/iamcal/emoji-data as of November 30, 2017
- Fixes recognizing some new emoji using both gender and skin tone modifiers