marufmax / emoticon-php
An Elegant Emoji/Emoticon package for PHP
Installs: 20 243
Dependents: 0
Suggesters: 0
Security: 0
Stars: 31
Watchers: 3
Forks: 5
Open Issues: 1
Requires
- php: >=7.0
Requires (Dev)
- phpunit/phpunit: ^6.5.14
This package is auto-updated.
Last update: 2024-05-12 13:06:38 UTC
README
Composer package for emoticons 🎉
Installation
You need PHP and Composer before installing this package.
just run composer require marufmax/emoticon-php
in your project's directory
Usages Example
$emoji = new \MarufMax\Emoticon\Emoticon(); $emoji->random(); // will display an random emoji ==> 🍕️ $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
Testing
$composer test
Security
If you discover any security related issues, please email hi@marufalom.com instead of using the issue tracker.