PHPackages                             rvish/emoji - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. rvish/emoji

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

rvish/emoji
===========

An Emoji encoder and decoder with browser for Laravel 5 (unified to HTML)

1.2(8y ago)3312MITPHP

Since Jul 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ravi-sharma/emoji)[ Packagist](https://packagist.org/packages/rvish/emoji)[ RSS](/packages/rvish-emoji/feed)WikiDiscussions master Synced 1mo ago

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/88805fbde4fcb6c1686be1be24a716e7e632ee7e51f9316e36c52171ee29f911/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72766973682f656d6f6a692e737667)](https://packagist.org/packages/rvish/emoji)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)[![Build Status](https://camo.githubusercontent.com/0339d51ef3c762225a3a99eea12f7cf219043a9609f85d4eb502f76e1c887053/68747470733a2f2f7472617669732d63692e6f72672f726176692d736861726d612f656d6f6a692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ravi-sharma/emoji)

A simple PHP library for handling Emoji
=======================================

[](#a-simple-php-library-for-handling-emoji)

An emoji encoder/parser for Laravel 5. This will encode and decode html to unified and vice versa. In order to handle emojies in database where you care about light weight things, performance and don't want to use blob data type.

Installation
------------

[](#installation)

[PHP](https://php.net) 5.5+

To get the latest version of rvish Emoji, simply require the project using [Composer](https://getcomposer.org):

```
$ composer require rvish/emoji
```

Instead, you may of course manually update your require block and run `composer update` if you so choose:

```
{
    "require": {
        "rvish/emoji": "*"
    }
}
```

Once rvish Emoji is installed, you need to register the service provider. Open up `config/app.php` and

1. add the `Rvish\Emoji\EmojiServiceProvider::class` to the `providers`
2. add the `'Emoji' => Rvish\Emoji\Facades\Emoji::class` to the `aliases`.

Usage
-----

[](#usage)

For encoding to Bytes (UTF-8)

```
Emoji::encode("Test1 Test2 💡 Test3"); // encoding to Bytes (UTF-8)
```

For decoding to Native

```
Emoji::decode("Test1 Test2 \xf0\x9f\x92\xa1 Test3"); // decoding to Native
```

Contributing
------------

[](#contributing)

We welcome contributions! If you would like to hack on Emoji, please follow these steps:

1. Fork this repository
2. Make your changes
3. Install the requirements
4. Submit a pull request after running `make check` (ensure it does not error!)

Please give us adequate time to review your submission. Thanks!

License
-------

[](#license)

Rvish Emoji is licensed under [The MIT License (MIT)](LICENSE).

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Total

3

Last Release

3074d ago

### Community

Maintainers

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

---

Tags

browserparserhtmlemojiencoderunifiedeecodervish

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rvish-emoji/health.svg)

```
[![Health](https://phpackages.com/badges/rvish-emoji/health.svg)](https://phpackages.com/packages/rvish-emoji)
```

###  Alternatives

[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M226](/packages/masterminds-html5)[paquettg/php-html-parser

An HTML DOM parser. It allows you to manipulate HTML. Find tags on an HTML page with selectors just like jQuery.

2.4k7.9M121](/packages/paquettg-php-html-parser)[sunra/php-simple-html-dom-parser

Composer adaptation of: A HTML DOM parser written in PHP5+ let you manipulate HTML in a very easy way! Require PHP 5+. Supports invalid HTML. Find tags on an HTML page with selectors just like jQuery. Extract contents from HTML in a single line.

1.3k9.4M62](/packages/sunra-php-simple-html-dom-parser)[imangazaliev/didom

Simple and fast HTML parser

2.2k2.3M64](/packages/imangazaliev-didom)[donatj/phpuseragentparser

Lightning fast, minimalist PHP UserAgent string parser.

60417.1M60](/packages/donatj-phpuseragentparser)[simplehtmldom/simplehtmldom

A fast, simple and reliable HTML document parser for PHP.

1921.3M14](/packages/simplehtmldom-simplehtmldom)

PHPackages © 2026

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