Releases: SteppingHat/php-emoji-detector
Unicode 16.0 support
What's Changed
- Support for Unicode 16.0 characters
- Generate datasets directly from Unicode resources #19
Data is now sourced directly from Unicode when generating the local map. While testing every single emoji is not possible, there is test coverage that tests a distributed sample of emojis that continue to pass despite the provider change, making this safe for release.
Full Changelog: 1.7.0...1.8.0
PHP 8.4 support
This release adds PHP 8.4 to the test matrix and confirms support for PHP 8.4.
While PHP versions 7.4 and 8.0 are no longer supported, this library will continue to support them due to its simplicity at least until any issues arise.
Add `detectDistinct()` method
What's Changed
- Added a method called
detectDistinct()
that lists the first occurrence of every distinct emoji in a given string. - Updated documentation to usher users to use caret versioning, since future Unicode updates are published as minor releases.
Full Changelog: 1.5.1...1.6.0
Unicode 15.0 support
What's Changed
- Update to the Unicode 15.0 dataset by @SteppingHat in #9
Full Changelog: 1.3...1.4
⚠️ Unicode 15.0 has updated metadata for some emojis ⚠️
For example, the category for ❤️ changed from 'emotion' to 'heart'. This caused one of the tests to fail, which has been amended to reflect the new data.
Due to the nature of Unicode and how emoji data is managed, this will not be means for a major release.
The purpose of the tests are to ensure that this package works as intended, and not to validate the Unicode data itself. If there are any issues that arise, please report an issue.
Added PHP 8.2 support
1.3.0 Add public method to detect distinct emojis in a string
PHP 8.3 support
This release assures tests are run against PHP 8.3.
No bugfixes, features or updates to the Unicode version are included in this release.
Unicode 15.1 support
Full Changelog: 1.4...1.5
Removed unsupported PHP versions from test suite (7.1, 7.2 and 7.3)
1.2.1 Dropped unsupported PHP versions from tests (7.1, 7.2, 7.3)
Check for a purely emoji string and PHP 8.1 Support
This release adds a feature where you can check if a string is purely emojis. For example:
<?php
require_once('vendor/autoload.php')
use SteppingHat\EmojiDetector;
$detector = new EmojiDetector();
$detector->isEmojiString("😂😂😂"); // Returns TRUE
$detector->isEmojiString("Deez nuts 🥜") // Returns FALSE
This update also brings automated testing for PHP 8.1
Unicode 13.1.0 and PHP 8.0 support
Merge pull request #2 from SteppingHat/feature/update-to-unicode-13.1.0 Update to unicode 13.1.0