New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

overtrue/laravel-emoji

An emojione bridge for Laravel.
50,765 150
Install
composer require overtrue/laravel-emoji
Latest Version:3.0.0
PHP:^8.3
Laravel:13
Older releases:9 · 10 · 11
License:MIT
Last Updated:Oct 4, 2026
Links: GitHub  ·  Packagist
Maintainer: overtrue

Laravel Emoji

:smile: This package assist you in getting started with emoji easily.

Laravel Octane Ready Status GitHub release (latest SemVer) GitHub License Packagist Downloads

Sponsor me

Requirements

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.

Installing

$ composer require overtrue/laravel-emoji

Usage

Emoji::toImage(':smile:'); // <img class="emojione" alt="&#x1f604;" 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);

Configurations

// config
$ php artisan vendor:publish --provider="Overtrue\\LaravelEmoji\\EmojiServiceProvider" --tag=laravel-emoji

Upgrading to version 3

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: Sponsor me

Sponsor me

如果你喜欢我的项目并想支持它,点击这里 :heart:

Project supported by JetBrains

Many thanks to Jetbrains for kindly providing a license for me to work on this and other open-source projects.

License

MIT

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

651,963,193 9,701
laravel/framework

The Laravel Framework.

610,364,751 34,988
laravel/tinker

Powerful REPL for the Laravel framework.

518,004,183 7,444
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

435,097,283 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

412,228,818 4,664

Version History

Version Released PHP Laravel License
3.0.0 ^8.3 ^13.0 MIT
2.1.0 ^9.0|^10.0|^11.0 MIT
2.0.0 ^9.0|^10.0 MIT
1.2.0 >=5.5 MIT
1.1.0 >=5.5 MIT