Skip to content

determine if some text contains a single emoji or not. useful in determining if a reply is a "reacji" or actual text

License

Notifications You must be signed in to change notification settings

dissolve/single-emoji-recognizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Ben Roberts
Jun 29, 2017
38e9378 · Jun 29, 2017

History

12 Commits
Dec 14, 2015
Dec 14, 2015
Dec 10, 2015
Jun 29, 2017
May 30, 2016
Dec 14, 2015

Repository files navigation

single-emoji-recognizer

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

About

determine if some text contains a single emoji or not. useful in determining if a reply is a "reacji" or actual text

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages