granam/emojione-micro
Composer 安装命令:
composer require granam/emojione-micro
包简介
Extracted Emoji One CSS and converters in PHP / Python / JS / Meteor / Awesome font.
关键字:
README 文档
README
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
- convert an UTF-8 emoji 😎 into its Emoji One image equivalent
by one of conversion methods
- style it with provided CSS
- let download images from public CDN JSDelivr (Emoji One official partner)
- 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 ).
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
- Applies to all PNG and SVG files as well as any adaptations made.
- The following applies to artwork included in EmojiOne GitHub libraries versions < 2.0.0.
- License: Creative Commons Attribution-ShareAlike 4.0 International
- Human Readable License: http://creativecommons.org/licenses/by-sa/4.0/
- Complete Legal Terms: http://creativecommons.org/licenses/by-sa/4.0/legalcode
- The following applies to artwork included in EmojiOne GitHub libraries versions >= 2.0.0.
- License: Creative Commons Attribution 4.0 International
- Human Readable License: http://creativecommons.org/licenses/by/4.0/
- Complete Legal Terms: http://creativecommons.org/licenses/by/4.0/legalcode
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
统计信息
- 总下载量: 28
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: (CC-BY-4.0 and MIT) 24d5df706bf3acc1c9688eefb7abb52a383d942a
- 更新时间: 2017-03-08