https://github.com/pixelbrackets/emoji-chart
This package provides a static list of emoji
https://github.com/pixelbrackets/emoji-chart
emoji php
Last synced: 3 months ago
JSON representation
This package provides a static list of emoji
- Host: GitHub
- URL: https://github.com/pixelbrackets/emoji-chart
- Owner: pixelbrackets
- Created: 2020-08-13T08:51:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-01T18:43:15.000Z (over 5 years ago)
- Last Synced: 2025-03-06T18:29:37.478Z (about 1 year ago)
- Topics: emoji, php
- Language: PHP
- Homepage: https://gitlab.com/pixelbrackets/emoji-chart/
- Size: 44.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Emoji Chart
[](https://packagist.org/packages/pixelbrackets/emoji-chart/)
[](https://gitlab.com/pixelbrackets/emoji-chart/pipelines)
[](https://gitlab.com/pixelbrackets/emoji-chart#requirements)
[](https://spdx.org/licenses/GPL-2.0-or-later.html)
This package provides a static list of [Emoji](https://de.wikipedia.org/wiki/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](./tests/demo.php)
1. Get an array with all Emojis
```php
$colorChart = new \Pixelbrackets\EmojiChart\EmojiChart();
$emojis = $colorChart->getEmojis();
```
Or as static method call
```php
$emojis = \Pixelbrackets\EmojiChart\EmojiChart::getEmojis();
```
1. Get an array with all categories
```php
$categories = \Pixelbrackets\EmojiChart\EmojiChart::getCategories();
```
1. Get an array with all Emojis grouped by category
```php
$groupedEmojis = \Pixelbrackets\EmojiChart\EmojiChart::getEmojisGroupedByCategory();
```
1. Get an array of a single Emoji
```php
$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](https://github.com/iamcal/emoji-data) (MIT).
## Author
Dan Untenzu ( / [@pixelbrackets](https://pixelbrackets.de))
## Changelog
See [./CHANGELOG.md](CHANGELOG.md)
## Contribution
This script is Open Source, so please use, patch, extend or fork it.