2017 © Pedro Pelรกez
 

library litemoji

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

image

elvanto/litemoji

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

  • Tuesday, July 24, 2018
  • by bensinclair
  • Repository
  • 5 Watchers
  • 14 Stars
  • 111,525 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 11 Versions
  • 53 % Grown

The README.md

LitEmoji ๐Ÿ”ฅ

A PHP library simplifying the conversion of unicode, HTML and shortcode emoji., (*1)

Run Tests, (*2)

Installation

$ composer require elvanto/litemoji

Alternatively you can clone or download the library files., (*3)

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 ๐Ÿ”ฅ! ๐Ÿ˜ƒ'

echo LitEmoji::removeEmoji('Baby you light my ๐Ÿ”ฅ! ๐Ÿ˜ƒ!!!');
// '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:'

// Add aliases for custom shortcodes
LitEmoji::config('aliasShortcodes', ['yeah' => 'thumbsup']);
echo LitEmoji::encodeUnicode('Can do :yeah:!');
// 'Can do ๐Ÿ‘!'

Encodings

LitEmoji's various functions will do their best to detect the encoding of the provided text and should work on UTF-8 encoded strings without issue. In cases where the encoding cannot be detected, UTF-8 is assumed, however a second argument can be provided to any of the functions to hint the actual encoded of the provided string., (*4)

Contributing

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

License

MIT License, (*6)

The Versions

24/07 2018

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

emoji php-emoji

24/07 2018

1.4.1

1.4.1.0

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

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

emoji php-emoji

25/05 2018

dev-feature-exclude-shortcodes

dev-feature-exclude-shortcodes

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

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

emoji php-emoji

25/05 2018

1.4.0

1.4.0.0

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

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

emoji php-emoji

09/10 2017

1.3.1

1.3.1.0

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

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

emoji php-emoji

04/10 2017

1.3.0

1.3.0.0

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

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

emoji php-emoji

03/10 2017

1.2.0

1.2.0.0

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

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

emoji php-emoji

15/05 2017

1.1.0

1.1.0.0

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

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

emoji php-emoji

14/02 2017

1.0.2

1.0.2.0

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

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

emoji php-emoji

14/02 2017

1.0.1

1.0.1.0

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

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

emoji php-emoji

13/02 2017

1.0.0

1.0.0.0

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

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

emoji php-emoji