pixelbrackets/emoji-chart
最新稳定版本:1.0.0
Composer 安装命令:
composer require pixelbrackets/emoji-chart
包简介
This package provides a static list of emoji
README 文档
README
This package provides a static list of Emoji.
The object returns an array which contains an Emoji string, the unicode codepoint, a unique name, a short name as supported in Slack or GitHub, and a category.
![]()
Requirements
- PHP
Installation
Packagist Entry https://packagist.org/packages/pixelbrackets/emoji-chart/
Source
https://gitlab.com/pixelbrackets/emoji-chart/
Usage
See tests/demo.php
- Get an array with all Emojis
$colorChart = new \Pixelbrackets\EmojiChart\EmojiChart(); $emojis = $colorChart->getEmojis();Or as static method call
$emojis = \Pixelbrackets\EmojiChart\EmojiChart::getEmojis(); - Get an array with all categories
$categories = \Pixelbrackets\EmojiChart\EmojiChart::getCategories(); - Get an array with all Emojis grouped by category
$groupedEmojis = \Pixelbrackets\EmojiChart\EmojiChart::getEmojisGroupedByCategory(); - Get an array of a single Emoji
$emoji = \Pixelbrackets\EmojiChart\EmojiChart::getEmoji('grinning face');
License
GNU General Public License version 2 or later
The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html.
The list is based upon the great NPM package emoji-datasource (MIT).
Author
Dan Untenzu (mail@pixelbrackets.de / @pixelbrackets)
Changelog
See ./CHANGELOG.md
Contribution
This script is Open Source, so please use, patch, extend or fork it.
统计信息
- 总下载量: 2.12k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2020-09-01