dissolve / single-emoji-recognizer
Determine if a string is a 'Single' Emoji
1.0.0
2016-05-30 05:12 UTC
This package is not auto-updated.
Last update: 2024-11-09 19:56:22 UTC
README
determine if some text contains a single emoji or not. useful in determining if a reply is a "reacji" or actual text
Install
This library can be installed easily with composer
composer require dissolve/single-emoji-recognizer
then from within your code
require_once( 'vendor/dissolve/single-emoji-recognizer/src/emoji.php');
Examples
This library offers up a single function, isSingleEmoji. You can call it like this
$is_emoji = EmojiRecognizer::isSingleEmoji('😯') // => true
$is_emoji = EmojiRecognizer::isSingleEmoji('foo') // => false