hgati / emoticon-php
An Elegant Emoji/Emoticon package for PHP
Installs: 43
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 5
pkg:composer/hgati/emoticon-php
Requires
- php: >=8.2
Requires (Dev)
- phpunit/phpunit: ^6.5.14
This package is auto-updated.
Last update: 2025-09-28 07:26:52 UTC
README
Installation
You need PHP and Composer before installing this package.
just run composer require hgati/emoticon-php:dev-master
in your project's directory
Usages Example
$emoji = new \Hgati\Emoticon\Emoticon(); $emoji->random(); // will display an random emoji ==> 🍕️ (except emojis start with "flag-") $emoji->get('heart'); // it will return an emoji with heart ❤, note: this also support with colon $emoji->get(':heart:'); $emoji->search('hea'); // This will return an array with all emojies and key name matching with word `hea` $emoji->emojify('I like :metal: '); // It will render the text with metal emoji