PHPackages                             sloyakuza/laravel-joypixel-emojis - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. sloyakuza/laravel-joypixel-emojis

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sloyakuza/laravel-joypixel-emojis
=================================

Laravel helper for Joypixels emojis

v2.0.0(3y ago)01.8kMITPHPPHP ^7.4|^8.0

Since Mar 26Pushed 3y ago1 watchersCompare

[ Source](https://github.com/SLOYakuza/laravel-joypixel-emojis)[ Packagist](https://packagist.org/packages/sloyakuza/laravel-joypixel-emojis)[ Docs](https://github.com/SLOYakuza/laravel-joypixel-emojis)[ RSS](/packages/sloyakuza-laravel-joypixel-emojis/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

laravel-joypixel-emojis [![❤️](https://camo.githubusercontent.com/572173bf702e1b4babd3e59aa4b713738375e9f5ecf6caf16135e7b8989d6c92/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f656d6f6a696f6e652f6173736574732f342e302f706e672f3132382f323736342e706e67)](https://camo.githubusercontent.com/572173bf702e1b4babd3e59aa4b713738375e9f5ecf6caf16135e7b8989d6c92/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f656d6f6a696f6e652f6173736574732f342e302f706e672f3132382f323736342e706e67)
===============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#laravel-joypixel-emojis-)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Packagist](https://camo.githubusercontent.com/37885e16bf4729d59462b1f8fed5851f272c022169b186da826176c52bc4e856/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736c6f79616b757a612f6c61726176656c2d6a6f79706978656c2d656d6f6a6973)](https://packagist.org/packages/sloyakuza/laravel-joypixel-emojis/)[![Packagist Downloads](https://camo.githubusercontent.com/5f45475d03e02454dba7d9b4902fb871334433c79e8962ad58fa0b4f98a4a711/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f736c6f79616b757a612f6c61726176656c2d6a6f79706978656c2d656d6f6a69732e7376673f6c6162656c3d7061636b6167697374253230646f776e6c6f616473)](https://packagist.org/packages/sloyakuza/laravel-joypixel-emojis)

Laravel package to make it easier working with the modern emojis from [Joypixels](https://joypixels.com/).

installation
------------

[](#installation)

Via Composer

```
$ composer require "sloyakuza/laravel-joypixel-emojis"
```

```
$ composer update
```

**If you are on a Laravel that does not have Auto Discovery or you have it disabled then you need to add the following to your `config/app.php` file:**

Add the ServiceProvider to the providers array in `config/app.php`

```
sloyakuza\LaravelJoyPixels\LaravelJoyPixelsServiceProvider::class,
```

Add this to the aliases array in `config/app.php`

```
'LaravelJoyPixels' => sloyakuza\LaravelJoyPixels\LaravelJoyPixelsFacade::class,
```

Config:

```
$ php artisan vendor:publish --tag=config --provider="sloyakuza\LaravelJoyPixels\LaravelJoyPixelsServiceProvider"
```

Usage
-----

[](#usage)

```
LaravelJoyPixels::toShort($str); // - native unicode -> shortnames
LaravelJoyPixels::shortnameToImage($str); // - shortname -> images
LaravelJoyPixels::unicodeToImage($str); // - native unicode -> images
LaravelJoyPixels::toImage($str); // - native unicode + shortnames -> images (mixed input)
```

Blade (equivalent to `LaravelJoyPixels::toImage($str)`):

`@joypixels(':smile:')` -&gt; [![😀](https://camo.githubusercontent.com/d86370b5510bd2401a16b1723f23b05ec112ea18ecb98df4fd09d04ce9375caa/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f656d6f6a696f6e652f6173736574732f342e302f706e672f36342f31663630302e706e67)](https://camo.githubusercontent.com/d86370b5510bd2401a16b1723f23b05ec112ea18ecb98df4fd09d04ce9375caa/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f656d6f6a696f6e652f6173736574732f342e302f706e672f36342f31663630302e706e67)

`@joypixels(':smile: ❤️')` -&gt; [![😀](https://camo.githubusercontent.com/e03e4558e51d42399ce4df041a741bb80af3d204f382fe9c67df2683ce4bc950/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f656d6f6a696f6e652f6173736574732f342e302f706e672f3132382f31663630302e706e67)](https://camo.githubusercontent.com/e03e4558e51d42399ce4df041a741bb80af3d204f382fe9c67df2683ce4bc950/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f656d6f6a696f6e652f6173736574732f342e302f706e672f3132382f31663630302e706e67)[![❤️](https://camo.githubusercontent.com/572173bf702e1b4babd3e59aa4b713738375e9f5ecf6caf16135e7b8989d6c92/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f656d6f6a696f6e652f6173736574732f342e302f706e672f3132382f323736342e706e67)](https://camo.githubusercontent.com/572173bf702e1b4babd3e59aa4b713738375e9f5ecf6caf16135e7b8989d6c92/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f656d6f6a696f6e652f6173736574732f342e302f706e672f3132382f323736342e706e67)

🚨 The output is not escaped so be careful with what you pass into `@joypixels`.

More details about how `toImage($str)` works can be found at

### Example

[](#example)

You want to let users put emoji a comment. When you are saving a comment, you might want to run the content through `LaravelJoyPixels::toShort($str)` to convert `😄` and other emoji to `:smile:` etc.

```
Comment::create([
  'content' => LaravelJoyPixels::toShort(request('content'))
]);
```

So if someone leaves a comment like `This is an awesome comment 😄🔥` it will be saved as `This is an awesome comment :smile: :fire:`

In your view where you display your comments you can use

```
@joypixels($comment->content)
```

and that will convert `:smile:` and `😄` to the emojione equivalent.

Assets
------

[](#assets)

By default it will use the assets from JSDelivr.

Remember to run this before trying to publish any of the assets:

```
composer require joypixels/assets
```

If you want to serve the assets yourself you can publish them with the following commands. Remember to update `config/joypixels.php`

PNG files in sizes 32/64/128:

```
$ php artisan vendor:publish --tag=public --provider="sloyakuza\LaravelJoyPixels\LaravelJoyPixelsServiceProvider"
```

In `config/joypixels.php` specify the local path. Remember to specify which size you want in the path (32/64/128).

```
'imagePathPNG' => '/vendor/joypixels/png/64/',
```

### Sprites

[](#sprites)

If you want to use sprites:

```
$ php artisan vendor:publish --tag=sprites --provider="sloyakuza\LaravelJoyPixels\LaravelJoyPixelsServiceProvider"
```

In `config/joypixels.php` enable sprites:

```
'sprites' => true,
'spriteSize' => 32, // 32 or 64
```

Add the stylesheet to your HTML:

```

```

###  Health Score

27

—

LowBetter than 46% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~171 days

Total

3

Last Release

1263d ago

Major Versions

v1.0.1 → v2.0.02023-03-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/eea69b49c1c5911580a2ab3b874a17de8d7ac7452602a87b3ba79055a9c4bf37?d=identicon)[SLOYakuza](/maintainers/SLOYakuza)

---

Tags

laravelemojiemojioneJoyPixelsSLOYakuza

### Embed Badge

![Health badge](/badges/sloyakuza-laravel-joypixel-emojis/health.svg)

```
[![Health](https://phpackages.com/badges/sloyakuza-laravel-joypixel-emojis/health.svg)](https://phpackages.com/packages/sloyakuza-laravel-joypixel-emojis)
```

###  Alternatives

[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90157.6k](/packages/emargareten-inertia-modal)[forjedio/inertia-table

Backend-driven dynamic tables for Laravel + Inertia.js

272.0k](/packages/forjedio-inertia-table)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.8k](/packages/tomshaw-electricgrid)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
