PHPackages                             oh/emoji-bundle - 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. oh/emoji-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

oh/emoji-bundle
===============

Translates emoji characters to HTML/CSS

025.8k↓50%CSS

Since Feb 27Pushed 9y ago1 watchersCompare

[ Source](https://github.com/ollieLtd/OhEmojiBundle)[ Packagist](https://packagist.org/packages/oh/emoji-bundle)[ RSS](/packages/oh-emoji-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

OhEmojiBundle
=============

[](#ohemojibundle)

Symfony2 bundle which uses [php-emoji](https://github.com/iamcal/php-emoji) to create a Twig extension that converts iPhone emoji icons to html.

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

[](#installation)

Install this bundle as usual by adding to deps:

```
// /deps
[OhEmojiBundle]
   git=https://github.com/ollietb/OhEmojiBundle
   target=/bundles/Oh/EmojiBundle

```

and running the vendors script

```
php bin/vendors install

```

Register the namespace in `app/autoload.php`:

```
// app/autoload.php
$loader->registerNamespaces(array(
    // ...
    'Oh' => __DIR__.'/../vendor/bundles',
));

```

Register the bundle in `app/AppKernel.php`:

```
// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new Oh\EmojiBundle\OhEmojiBundle(),
    );
}

```

Add the following line to `app/config/config.yml`:

```
imports:
	- { resource: @OhEmojiBundle/Resources/config/services.yml }

```

finally publish the assets

```
php app/console assets:install --symlink web

```

and include the css in your stylesheets

```

```

Usage (Twig)
------------

[](#usage-twig)

### iphone\_emoji

[](#iphone_emoji)

Simply use the function to automatically wrap spans around your emoji characters.

```
{{ "This text contains some emoji !" | iphone_emoji }}

```

Would output

```
This text contains some emoji !

```

There's also a `google_emoji` function, because for some reason they use different standards.

Tests
-----

[](#tests)

Not needed - this is just a Symfony2 wrapper for another library which has its own tests

Credits
-------

[](#credits)

- Ollie Harridge (ollietb) as main author.
- Cal Henderson (iamcal) for writing the converter script \[\]

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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/c292a6c56c272b9c31da4a195de55521accd66989e84cd7e0767423a6743a275?d=identicon)[ollietb](/maintainers/ollietb)

---

Top Contributors

[![ollietb](https://avatars.githubusercontent.com/u/342090?v=4)](https://github.com/ollietb "ollietb (14 commits)")[![barbieswimcrew](https://avatars.githubusercontent.com/u/9333471?v=4)](https://github.com/barbieswimcrew "barbieswimcrew (2 commits)")

### Embed Badge

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

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

###  Alternatives

[liip/rmt

Release Management Tool: a handy tool to help releasing new version of your software

457448.7k74](/packages/liip-rmt)[josegonzalez/cakephp-environments

CakePHP plugin to handle environments-level configuration

4785.9k](/packages/josegonzalez-cakephp-environments)

PHPackages © 2026

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