PHPackages                             pyrrah/twemoji - 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. pyrrah/twemoji

ActiveSymfony-bundle

pyrrah/twemoji
==============

The simple way to use Twitter Emoji (Twemoji) for Symfony 6.x.

v1.1.1(2y ago)056MITPHPPHP ^7.0|^8.0

Since Sep 21Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/Pyrrah/Twemoji)[ Packagist](https://packagist.org/packages/pyrrah/twemoji)[ RSS](/packages/pyrrah-twemoji/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (5)Versions (5)Used By (0)

Pyrrah/Twemoji 😉
================

[](#pyrrahtwemoji-)

[![Latest Version on Packagist](https://camo.githubusercontent.com/95fc0d051b5d4b4913ffe3024f5ec269af16b008ac0d6a3296572df0c9052321/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7079727261682f7477656d6f6a692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pyrrah/twemoji)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Total Contributors](https://camo.githubusercontent.com/eb4a2324bb1526168e7db7ad827d8d2314cc972e6ea6d08b6ff78d633e12548f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f5079727261682f7477656d6f6a693f7374796c653d666c61742d737175617265)](../../contributors)[![Total Downloads](https://camo.githubusercontent.com/cb9cfa2fb0a2a258c828a43a49fc991a42f9d51de75c0673479cdfb1db1f7fa2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7079727261682f7477656d6f6a692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pyrrah/twemoji)

This bundle allows you to replace emojis on a web page with emojis from the Twitter Emojis library (Twemoji). Usually, the emojis used come from your system and they are different from one system to another.

Based on [Avris\\Twemoji](https://gitlab.com/Avris/Twemoji).

Note

Since 2023, @jdecked no longer works for Twitter but continues to maintain the package on Jdecked/Twemoji. To get the most up-to-date emojis, we use the latest version of the CDN by default.

What is Twemoji ?
-----------------

[](#what-is-twemoji-)

[Twemoji](https://github.com/jdecked/twemoji) is a great way to make emoji's on your website independent of system and browser ([old repository](https://github.com/twitter/twemoji)).

Unless you just use this library to replace emojis with `` tags in your backend.

Note: it will, of course, increase the server response time (instead removing a flash of system emojis before JS loads). Therefore, it's better suited for generated static websites or HTTP cached requests.

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

[](#installation)

1. To install this bundle, run the following [Composer](https://getcomposer.org/) command :

```
composer require pyrrah/twemoji

```

2. If you're using Symfony with autowiring, just register the service(s) :

```
# config/services.yaml
  Pyrrah\Twemoji\TwemojiService: ~
  Pyrrah\Twemoji\TwemojiExtension: ~
```

Usage
-----

[](#usage)

In your controller :

```
$twemoji->replace('Hello! 👋');
// Hello!

```

Using Twig:

```
{% filter twemoji %}

      Hello! 👋

{% endfilter %}

```

```
yourBestVar|twemoji

```

Tests
-----

[](#tests)

```
vendor/bin/phpunit

```

Credits
-------

[](#credits)

- [Pierre-Yves Dick](https://github.com/Pyrrah)
- [Andrea Prusinowski](https://gitlab.com/Avris)
- [All Contributors](../../contributors)

License
-------

[](#license)

This bundle is under the MIT license. For the full copyright and license information please view the [License File](LICENSE) that was distributed with this source code.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance41

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Total

4

Last Release

902d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/01e8d92076075851f6a9f43a99c6a721df3d8e8c4d14a779f15d6988f72c7a60?d=identicon)[pyrrah](/maintainers/pyrrah)

---

Top Contributors

[![Pyrrah](https://avatars.githubusercontent.com/u/854407?v=4)](https://github.com/Pyrrah "Pyrrah (12 commits)")

---

Tags

symfonyemojitwemojitwemoji symfony

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pyrrah-twemoji/health.svg)

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

###  Alternatives

[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[mahocommerce/maho

Free and open source ecommerce platform, created in 2024 on the M1 platform, PHP 8.3+

1322.1k12](/packages/mahocommerce-maho)[astrotomic/php-twemoji

Easily generate Twemoji URLs

3480.0k2](/packages/astrotomic-php-twemoji)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1022.4k](/packages/rcsofttech-audit-trail-bundle)

PHPackages © 2026

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