overtrue/laravel-emoji is a Laravel package for an emojione bridge for laravel..
It currently has 150 GitHub stars and 50.177 downloads on Packagist (latest version 3.0.0).
Install it with composer require overtrue/laravel-emoji.
Discover more Laravel packages by overtrue
or browse all Laravel packages to compare alternatives.
Last updated
:smile: This package assist you in getting started with emoji easily.
Version 3 requires PHP 8.3 or newer (PHP 8.x) and Laravel 13. Laravel 9, 10, 11, and 12 are not supported by version 3.
$ composer require overtrue/laravel-emoji
Emoji::toImage(':smile:'); // <img class="emojione" alt="😄" title=":smile:" src="https://cdn.jsdelivr.net/emojione/assets/3.1/png/32/1f604.png"/>'
Emoji::toShort('😄'); // :smile:
Emoji::shortnameToUnicode(':smile:'); // 😄
// using helper
// default transform shortname 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);
// config
$ php artisan vendor:publish --provider="Overtrue\\LaravelEmoji\\EmojiServiceProvider" --tag=laravel-emoji
Upgrade the application to Laravel 13 and PHP 8.3 or newer before installing version 3.
The helper, facade, Blade directive, and config/emoji.php options retain their existing APIs.
The helper now resolves the same JoyPixels client as the facade and container alias.
The unused Composer git-hook scripts have been removed. Contributors can run the checks directly:
composer install
composer test
composer check-style
如果你喜欢我的项目并想支持它,点击这里 :heart:
Many thanks to Jetbrains for kindly providing a license for me to work on this and other open-source projects.
MIT