pixelbrackets / kaomoji-chart
This package provides a static list of kaomoji
1.0.0
2020-09-01 20:42 UTC
Requires
- php: >=7.0.0
Requires (Dev)
- phpunit/phpunit: ^9.3
This package is auto-updated.
Last update: 2024-11-07 01:59:18 UTC
README
This package provides a static list of Kaomoji.
The object returns an array which contains a Kaomoji string, a unique name, and a category.
Requirements
- PHP
Installation
Packagist Entry https://packagist.org/packages/pixelbrackets/kaomoji-chart/
Source
https://gitlab.com/pixelbrackets/kaomoji-chart/
Usage
See tests/demo.php
- Get an array with all Kaomojis
$colorChart = new \Pixelbrackets\KaomojiChart\KaomojiChart(); $kaomojis = $colorChart->getKaomojis();
Or as static method call
$kaomojis = \Pixelbrackets\KaomojiChart\KaomojiChart::getKaomojis();
- Get an array with all categories
$categories = \Pixelbrackets\KaomojiChart\KaomojiChart::getCategories();
- Get an array with all Kaomojis grouped by category
$groupedKaomojis = \Pixelbrackets\KaomojiChart\KaomojiChart::getKaomojisGroupedByCategory();
- Get an array of a single Kaomoji
$kaomoji = \Pixelbrackets\KaomojiChart\KaomojiChart::getKaomoji('banzai');
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.
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.