Skip to content

A PHP library simplifying the conversion of unicode, HTML and shortcode emoji ๐Ÿ”ฅ

License

Notifications You must be signed in to change notification settings

Haraj-backend/litemoji

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

38 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

LitEmoji ๐Ÿ”ฅ

A PHP library simplifying the conversion of unicode, HTML and shortcode emoji.

Build Status

Installation

$ composer require elvanto/litemoji

Or add to composer.json:

"require": {
    "elvanto/litemoji": "^1.0.0"
}

and then run composer update.

Alternatively you can clone or download the library files.

Usage

use LitEmoji\LitEmoji;

echo LitEmoji::encodeShortcode('Baby you light my ๐Ÿ”ฅ! ๐Ÿ˜ƒ');
// 'Baby you light my :fire:! :smiley:'

echo LitEmoji::encodeHtml('Baby you light my :fire:! :smiley:');
// 'Baby you light my 🔥! 😃'

echo LitEmoji::encodeUnicode('Baby you light my :fire:! :smiley:');
// 'Baby you light my ๐Ÿ”ฅ! ๐Ÿ˜ƒ'

Configuration

use LitEmoji\LitEmoji;

// Exclude specific shortcodes when converting from unicode and HTML entities
LitEmoji::config('excludeShortcodes', ['mobile', 'android']);

echo LitEmoji::encodeShortcode('๐Ÿ“ฑ');
// ':iphone:'

Contributing

Pull requests are welcome. New code must be fully unit tested (the existing test suite can be run with PHPUnit).

License

MIT License

About

A PHP library simplifying the conversion of unicode, HTML and shortcode emoji ๐Ÿ”ฅ

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%