Giter Club home page Giter Club logo

unicode-emoji-parser-php's Introduction

Unicode Emoji v14 Parser with Pure PHP

Currently 4440+ emojis

πŸ‘‹πŸ»πŸ‘¨πŸ»β€πŸ¦±πŸ§œπŸ»πŸ„πŸ½β€β™€οΈβ›ΉπŸ½β€β™‚οΈπŸ›€πŸΎπŸ‡¨πŸ‡­πŸ‡ΉπŸ‡·πŸ‡©πŸ‡ͺπŸ–πŸ¦„πŸ³πŸŒ΅ and more

Parse operations with pure PHP over Unicode v14 emojis

See full list here:

Help


Usage

Initialize an object

$e = new \UnicodeEmoji\Core\Parser();
//true: json, false: php array
$giveMeJson = true;

Get all emojis

$e->getEmojis($giveMeJson);

[0] => Array
    (
        [codes] => Array
            (
                [0] => 1F600
            )

        [symbol] => πŸ˜€
        [e] => E1.0
        [name] => grinning face
        [variableName] => grinningFace
        [mainGroup] => Array
            (
                [name] => Smileys & Emotion
                [slug] => smileys-emotion
            )

        [subGroup] => Array
            (
                [name] => face-smiling
                [slug] => face-smiling
            )

    )
[1]..
[2]..

Get main emoji groups

$e->getMainGroups($giveMeJson)

[0] => Array
    (
        [name] => Smileys & Emotion
        [slug] => smileys-emotion
    )

[1] => Array
    (
        [name] => People & Body
        [slug] => people-body
    )

Get sub emoji groups

$e->getMainGroups($giveMeJson)

[0] => Array
    (
        [name] => face-smiling
        [slug] => face-smiling
    )

[1] => Array
    (
        [name] => face-affection
        [slug] => face-affection
    )


If you're using Docker you can run demo project with it. Stack is PHP8 and Apache. (Docker part is optional)

docker compose up

Then visit http://localhost:8000

About Emoji

https://home.unicode.org/emoji/about-emoji/

Emoji are pictographs (pictorial symbols) that are typically presented in a colorful form and used inline in text. They represent things such as faces, weather, vehicles and buildings, food and drink, animals and plants, or icons that represent emotions, feelings, or activities. To the computer they are simply another character, but people send each other billions of emoji everyday to express love, thanks, congratulations, or any number of a growing set of ideas.

Unicode FAQ

https://home.unicode.org/basic-info/faq/

Terms for Unicode

For the general privacy policy governing access to unicode.org, see the Unicode Privacy Policy.

Terms of Use for Unicode Data Files https://www.unicode.org/license.html

License

MIT Β© HakkΔ± Konu 2021

unicode-emoji-parser-php's People

Contributors

hakkikonu avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.