granam/emojione-micro

Extracted Emoji One CSS and converters in PHP / Python / JS / Meteor / Awesome font.

v2.2.7 2017-03-08 12:36 UTC

This package is auto-updated.

Last update: 2024-10-26 23:57:56 UTC


README

#EmojiOne Logo EmojiOne

bringing you emojione.com & emoji.codes

The web's first and only complete open source emoji set. It is 100% free and super easy to integrate.

Just an extraction

This library provides only CSS to style EmojiOne and tools in few languages to convert HTML-to-image-and-back.

Workflow

  1. convert an UTF-8 emoji 😎 into its Emoji One image equivalent by one of conversion methods
  2. style it with provided CSS
  3. let download images from public CDN JSDelivr (Emoji One official partner)
  4. be happy

Installation

Composer

$ composer require granam/emojione-micro
Note about namespace

The original Emojione namespace is used to provide compatibility and made eventual switch to original library easier.

Where is the original?

This library is just an extraction of large official library of version 2.2.7 (original latest version is Latest Stable Version). Whatever you think you need, you will find it there.

PHP Usage Examples

toShort($str) - native unicode -> shortnames

This demo shows you how to take native unicode emoji input, such as that from your mobile device, and translate it to their corresponding shortnames. (we recommend this for database storage)

shortnameToImage($str) - shortname -> images

This demo shows you how to take input containing only shortnames and translate it directly to EmojiOne images. (when displaying the unified input to clients)

unicodeToImage($str) - native unicode -> images

This demo shows you how to take native unicode emoji input, such as that from your mobile device, and translate it directly to EmojiOne images. (would be great for a live editor preview)

toImage($str) - native unicode + shortnames -> images (mixed input)

This demo shows you how to take input containing both native unicode emoji and shortnames, and translate it into EmojiOne images for display.

Licenses

EmojiOne Artwork

EmojiOne Non-Artwork

  • Applies to the Javascript, JSON, PHP, CSS, HTML files, and everything else not covered under the artwork license above.
  • License: MIT
  • Complete Legal Terms: http://opensource.org/licenses/MIT