Skip to content

Check for a purely emoji string and PHP 8.1 Support

Compare
Choose a tag to compare
@SteppingHat SteppingHat released this 15 May 21:11
· 30 commits to master since this release

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