Get access to +3600 emojis as class constants
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jawira Portugal 9417315afa
Merge pull request #21 from jawira/fully-qualified-emojis
4 weeks ago
docs feat: Only use fully-qualified emojis 4 weeks ago
resources/templates feat: Only use fully-qualified emojis 4 weeks ago
src feat: Only use fully-qualified emojis 4 weeks ago
tasks feat: Only use fully-qualified emojis 4 weeks ago
tests feat: Only use fully-qualified emojis 4 weeks ago
.editorconfig feat: Only use fully-qualified emojis 4 weeks ago
.gitattributes feat: Only use fully-qualified emojis 4 weeks ago
.gitignore Create EmojiCatalog 3 years ago
LICENSE.md Create EmojiCatalog 3 years ago
README.md feat: Update to Emoji v15 1 month ago
build.png feat: Only use fully-qualified emojis 4 weeks ago
build.xml feat: Only use fully-qualified emojis 4 weeks ago
composer.json feat: Only use fully-qualified emojis 4 weeks ago

README.md

Emoji catalog 📔

Get access to +3600 emojis as class constants.

Features:

  • 🍰 Dead easy to use
  • 🤩 A lot of emojis
  • 🔓 Zero dependencies

You can see the full emoji list.

Latest Stable Version License

Usage

You have access to emojis as \Jawira\EmojiCatalog\Emoji constants:

<?php
use Jawira\EmojiCatalog\Emoji;

echo Emoji::GRINNING_FACE;  // 😀
echo Emoji::SOCCER_BALL;    // ⚽
echo Emoji::HOURGLASS_DONE; // ⌛
echo Emoji::EJECT_BUTTON;   // ⏏

Your favorite IDE should give you autocomplete since you are simply calling class constants:

Autocomplete

How to install

$ composer require jawira/emoji-catalog

Emoji sequences

An emoji sequence is an emoji composed of other emojis. For example the character "👨👩👧" is composed of five characters: U+1F468 U+200D U+1F469 U+200D U+1F467.

You don't need to compose your emojis, jawira/emoji-catalog comes with all possible sequences as class constants:

echo Emoji::FAMILY_MAN_WOMAN_GIRL; // 👨👩👧

Contributing

  • If you liked this project, star it on GitHub . GitHub Repo stars
  • Or follow me on Twitter. Twitter Follow

License

This library is licensed under the MIT license.


Packages from jawira

jawira/plantuml GitHub stars
Provides PlantUML executable and plantuml.jar
jawira/plantuml-encoding GitHub stars
PlantUML encoding functions.
jawira/case-converter GitHub stars
Convert strings between 13 naming conventions: Snake case, Camel case, Pascal case, Kebab case, Ada case, Train case, Cobol case, Macro case, Upper case, Lower case, Sentence case, Title case and Dot notation.
More...