Giter Site home page Giter Site logo

lacasera / laravel-emoji Goto Github PK

View Code? Open in Web Editor NEW

This project forked from unicodeveloper/laravel-emoji

0.0 2.0 0.0 22 KB

:package: :yum: Laravel 5 Package that harnesses the power of PHP 7 unicode features to provide emojis in your laravel app

License: MIT License

PHP 100.00%

laravel-emoji's Introduction

laravel-emoji

emoji Latest Stable Version License Build Status Quality Score Total Downloads

A Laravel 5 Package for Using & Working With Emojis in your Laravel Apps

Installation

PHP 7 and Composer are required.

To get the latest version of Laravel Emoji, simply add the following line to the require block of your composer.json file.

"unicodeveloper/laravel-emoji": "1.0.*"

You'll then need to run composer install or composer update to download it and have the autoloader updated.

Once Laravel Emoji is installed, you need to register the service provider. Open up config/app.php and add the following to the providers key.

  • Unicodeveloper\Emoji\EmojiServiceProvider::class

Also, register the Facade like so:

'aliases' => [
    ...
    'Emoji' => Unicodeveloper\Emoji\Facades\Emoji::class,
    ...
]

Usage

Translate Emoji names to Unicode and Vice-versa.

>> Emoji::findByAlias("kissing_heart")
=> "๐Ÿ˜˜"

>> Emoji::findByName("sunglasses")
=> "๐Ÿ˜Ž"

>> Emoji::findByUnicode("\u{1F603}")
=> "smiley"

This package contains some of the characters listed on http://unicode.org/emoji/charts/full-emoji-list.html

Contributing

Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.

I am accepting PR's that add characters to emoji.php. Please use this list to look up the unicode value and the name of the character.

How can I thank you?

Why not star the github repo? I'd love the attention! Why not share the link for this repository on Twitter or HackerNews? Spread the word!

Don't forget to follow me on twitter!

Thanks! Prosper Otemuyiwa.

Inspiration

License

The MIT License (MIT). Please see License File for more information.

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.