PHPackages                             wahidinaji/laravel-joypixels - 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. wahidinaji/laravel-joypixels

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

wahidinaji/laravel-joypixels
============================

Laravel helper for Joypixels, EmojiOne

13PHP

Since Sep 24Pushed 7mo agoCompare

[ Source](https://github.com/WahidinAji/laravel-joypixels)[ Packagist](https://packagist.org/packages/wahidinaji/laravel-joypixels)[ RSS](/packages/wahidinaji-laravel-joypixels/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

WARNING
=======

[](#warning)

This package causes issues with my Project and Can't install it anymore. Based on the original package by [andkab](https://github.com/andkab/laravel-joypixels) is no longer maintained by the original author and removed from Packagist. I've forked the package and published it to Packagist to fix the issues.

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

[](#laravel-joypixels-)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

[![😀](https://camo.githubusercontent.com/e03e4558e51d42399ce4df041a741bb80af3d204f382fe9c67df2683ce4bc950/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f656d6f6a696f6e652f6173736574732f342e302f706e672f3132382f31663630302e706e67)](https://camo.githubusercontent.com/e03e4558e51d42399ce4df041a741bb80af3d204f382fe9c67df2683ce4bc950/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f656d6f6a696f6e652f6173736574732f342e302f706e672f3132382f31663630302e706e67) [![🏋🏼](https://camo.githubusercontent.com/28ca3e5d1f360a8cdaad817b924c200242106fb32b3af6800092747373bdfb69/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f656d6f6a696f6e652f6173736574732f342e302f706e672f3132382f31663363622d31663366632e706e67)](https://camo.githubusercontent.com/28ca3e5d1f360a8cdaad817b924c200242106fb32b3af6800092747373bdfb69/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f656d6f6a696f6e652f6173736574732f342e302f706e672f3132382f31663363622d31663366632e706e67) [![❤️](https://camo.githubusercontent.com/572173bf702e1b4babd3e59aa4b713738375e9f5ecf6caf16135e7b8989d6c92/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f656d6f6a696f6e652f6173736574732f342e302f706e672f3132382f323736342e706e67)](https://camo.githubusercontent.com/572173bf702e1b4babd3e59aa4b713738375e9f5ecf6caf16135e7b8989d6c92/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f656d6f6a696f6e652f6173736574732f342e302f706e672f3132382f323736342e706e67) [![☮](https://camo.githubusercontent.com/6f805db35d62a8f367fa8ef29c295af72db2de5d6b4c448f421eb4a6f5e5d5c3/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f656d6f6a696f6e652f6173736574732f342e302f706e672f3132382f323632652e706e67)](https://camo.githubusercontent.com/6f805db35d62a8f367fa8ef29c295af72db2de5d6b4c448f421eb4a6f5e5d5c3/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f656d6f6a696f6e652f6173736574732f342e302f706e672f3132382f323632652e706e67)

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

Remember to read the [Joypixels Free License](https://www.joypixels.com/licenses/free) and provide the appropriate attribution. Or buy a [premium license](https://www.joypixels.com/licenses/premium)

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

[](#installation)

Via Composer

```
$ composer require "andkab/laravel-joypixels"
```

```
$ composer update
```

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

In `config/joypixels.php` enable sprites:

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

Add the stylesheet to your HTML:

```

```

License
-------

[](#license)

Remember to read the [Joypixels Free License](https://www.joypixels.com/developers/free-license) and provide the appropriate attribution. Or buy a [premium license](https://www.joypixels.com/developers/premium-license)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance44

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![WahidinAji](https://avatars.githubusercontent.com/u/48281037?v=4)](https://github.com/WahidinAji "WahidinAji (2 commits)")

### Embed Badge

![Health badge](/badges/wahidinaji-laravel-joypixels/health.svg)

```
[![Health](https://phpackages.com/badges/wahidinaji-laravel-joypixels/health.svg)](https://phpackages.com/packages/wahidinaji-laravel-joypixels)
```

###  Alternatives

[flourish/flourish

A collection of classes for general web development, with a particular focus on compatibility, portability and security

18243.1k](/packages/flourish-flourish)[workerman/statistics

3532.8k](/packages/workerman-statistics)[workbunny/webman-nacos

Webman plugin workbunny/webman-nacos

673.9k](/packages/workbunny-webman-nacos)[flipsite/flipsite

Static website compiler that scores 100/100 on all Lighthouse tests

182.3k](/packages/flipsite-flipsite)

PHPackages © 2026

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