PHPackages                             hdvinnie/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. hdvinnie/laravel-joypixel-emojis

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

hdvinnie/laravel-joypixel-emojis
================================

Laravel helper for Joypixels emojis

v3.0.1(1y ago)189.0k↓31.8%MITPHPPHP ^7.4|^8.0

Since Feb 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/HDVinnie/laravel-joypixel-emojis)[ Packagist](https://packagist.org/packages/hdvinnie/laravel-joypixel-emojis)[ Docs](https://github.com/HDVinnie/laravel-joypixel-emojis)[ RSS](/packages/hdvinnie-laravel-joypixel-emojis/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (5)Dependencies (2)Versions (6)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/da0e9625a0aa9ac1e6db96c6597f7b0a382f67fce5761d0f0750d76effd8cfb6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f686476696e6e69652f6c61726176656c2d6a6f79706978656c2d656d6f6a6973)](https://packagist.org/packages/hdvinnie/laravel-joypixel-emojis/)[![Packagist Downloads](https://camo.githubusercontent.com/9b59e0855a3c2bd124185749c056ccb7e74ad3590d139aafc62f48600bb8148f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f686476696e6e69652f6c61726176656c2d6a6f79706978656c2d656d6f6a69732e7376673f6c6162656c3d7061636b6167697374253230646f776e6c6f616473)](https://packagist.org/packages/hdvinnie/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 "hdvinnie/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`

```
hdvinnie\LaravelJoyPixels\LaravelJoyPixelsServiceProvider::class,
```

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

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

Config:

```
$ php artisan vendor:publish --tag=config --provider="hdvinnie\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="hdvinnie\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="hdvinnie\LaravelJoyPixels\LaravelJoyPixelsServiceProvider"
```

In `config/joypixels.php` enable sprites:

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

Add the stylesheet to your HTML:

```

```

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance41

Moderate activity, may be stable

Popularity33

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~278 days

Total

5

Last Release

491d ago

Major Versions

v1.0.1 → v2.0.02023-02-15

v2.0.0 → v3.0.02024-03-13

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12850699?v=4)[HDVinnie](/maintainers/HDVinnie)[@HDVinnie](https://github.com/HDVinnie)

---

Top Contributors

[![HDVinnie](https://avatars.githubusercontent.com/u/12850699?v=4)](https://github.com/HDVinnie "HDVinnie (7 commits)")

---

Tags

laravellaravelemojiemojioneJoyPixelsHDVinnie

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M10](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k12.5k1](/packages/vinkius-labs-laravel-page-speed)[christofferok/laravel-emojione

Laravel helper for EmojiOne

138117.5k](/packages/christofferok-laravel-emojione)[emargareten/inertia-modal

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

90142.9k](/packages/emargareten-inertia-modal)[wearepixel/laravel-cart

A cart implementation for Laravel

1374.8k](/packages/wearepixel-laravel-cart)

PHPackages © 2026

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