Skip to content

Simple Elegant PHP library for Emojis

Notifications You must be signed in to change notification settings

hgati/emoticon-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Emoticon PHP

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

About

Simple Elegant PHP library for Emojis

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%