Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pixelbrackets/emoji-chart
This package provides a static list of emoji
https://github.com/pixelbrackets/emoji-chart
emoji php
Last synced: 7 days 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 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-01T18:43:15.000Z (over 4 years ago)
- Last Synced: 2025-01-19T20:18:11.294Z (8 days 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
[![Version](https://img.shields.io/packagist/v/pixelbrackets/emoji-chart.svg?style=flat-square)](https://packagist.org/packages/pixelbrackets/emoji-chart/)
[![Build Status](https://img.shields.io/gitlab/pipeline/pixelbrackets/emoji-chart?style=flat-square)](https://gitlab.com/pixelbrackets/emoji-chart/pipelines)
[![Made With](https://img.shields.io/badge/made_with-php-blue?style=flat-square)](https://gitlab.com/pixelbrackets/emoji-chart#requirements)
[![License](https://img.shields.io/badge/license-gpl--2.0--or--later-blue.svg?style=flat-square)](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.![Screenshot](docs/screenshot.png)
## 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.