marufmax/emoticon-php

An Elegant Emoji/Emoticon package for PHP

1.1.0 2023-12-12 12:00 UTC

This package is auto-updated.

Last update: 2024-05-12 13:06:38 UTC


README

Latest Version on Packagist Software License Quality Score Code Coverage StyleCI

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.