Skip to content
Snippets Groups Projects
Select Git revision
  • master default
  • development
  • 1.0.0
3 results

emoji-chart

  • Clone with SSH
  • Clone with HTTPS
  • Dan Untenzu's avatar
    Dan Kleine (Dan Untenzu) authored
    Add a script which builds a new array using the
    existing npm package emoji-data (https://github.com/iamcal/emoji-data).
    2f627b5b
    History

    Emoji Chart

    Version Build Status Made With License

    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.

    Screenshot

    Requirements

    • PHP

    Installation

    Packagist Entry https://packagist.org/packages/pixelbrackets/emoji-chart/

    Source

    https://gitlab.com/pixelbrackets/emoji-chart/

    Usage

    See tests/demo.php

    1. Get an array with all Emojis
      $colorChart = new \Pixelbrackets\EmojiChart\EmojiChart();
      $emojis = $colorChart->getEmojis();
      Or as static method call
      $emojis = \Pixelbrackets\EmojiChart\EmojiChart::getEmojis();
    2. Get an array with all categories
      $categories = \Pixelbrackets\EmojiChart\EmojiChart::getCategories();
    3. Get an array with all Emojis grouped by category
      $groupedEmojis = \Pixelbrackets\EmojiChart\EmojiChart::getEmojisGroupedByCategory();
    4. 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.