Skip to content

πŸ˜„ This package assist you in getting started with emoji easily.

Notifications You must be signed in to change notification settings

xuejd3/laravel-emoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Laravel Emoji

πŸ˜„ This package assist you in getting started with emoji easily.

Installing

$ composer require xuejd3/laravel-emoji

Laravel auto-discovery supported.

If you are using < laravel 5.5

Add service provider

Xuejd3\LaravelEmoji\EmojiServiceProvider::class,

Add alias

'Emoji' => Xuejd3\LaravelEmoji\Emoji::class,

Usage

Emoji::toImage(':smile:'); // <img class="joypixels" alt="&#x1f604;" title=":smile:" src="https://cdn.jsdelivr.net/joypixels/assets/5.0/png/unicode/32/1f604.png">
Emoji::toShort('πŸ˜„'); // :smile:
Emoji::shortnameToUnicode(':smile:'); // πŸ˜„

// using helper
// default transform shorname to unicode, you can change it in config file.
emoji(':smile:'); // πŸ˜„

// access emoji services, return \JoyPixels\Client instance.
app('emoji');
// or 
app(\JoyPixels\Client::class);

Configurations

// config
$ php artisan vendor:publish --provider="Xuejd3\\LaravelEmoji\\EmojiServiceProvider"

License

MIT

About

πŸ˜„ This package assist you in getting started with emoji easily.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages