PHPackages                             cozumel/yii2-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. cozumel/yii2-twemoji

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

cozumel/yii2-twemoji
====================

Use Twemoji in Yii2.

1.0.0(8y ago)1467BSD-3-ClauseJavaScript

Since Apr 21Pushed 7y ago1 watchersCompare

[ Source](https://github.com/cozumel424/yii2-twemoji)[ Packagist](https://packagist.org/packages/cozumel/yii2-twemoji)[ Docs](https://github.com/cozumel424/yii2-twemoji)[ RSS](/packages/cozumel-yii2-twemoji/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Yii2 Twemoji
============

[](#yii2-twemoji)

[![Latest Stable Version](https://camo.githubusercontent.com/1a67acfb5efdc86c2c5bc7ed4f4962e54a555eae7812c9193bf0fed37f0b3529/68747470733a2f2f706f7365722e707567782e6f72672f636f7a756d656c2f796969322d7477656d6f6a692f762f737461626c65)](https://packagist.org/packages/cozumel/yii2-twemoji)[![Total Downloads](https://camo.githubusercontent.com/0b2b18964878ccd9111122f61d3618a6d6c0410e4ca437a72b8075a83bbfca4f/68747470733a2f2f706f7365722e707567782e6f72672f636f7a756d656c2f796969322d7477656d6f6a692f646f776e6c6f616473)](https://packagist.org/packages/cozumel/yii2-twemoji)[![License](https://camo.githubusercontent.com/076a688bdf5e78a49cbb3cda5285d871abb1f687fa5349844f8f47e24ed02307/68747470733a2f2f706f7365722e707567782e6f72672f636f7a756d656c2f796969322d7477656d6f6a692f6c6963656e7365)](https://packagist.org/packages/cozumel/yii2-twemoji)

A simple way to add [Twemoji](https://github.com/twitter/twemoji) support to your Yii2 project.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist cozumel/yii2-twemoji "*"

```

or add

```
"cozumel/yii2-twemoji": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```
use cozumel\twemoji\TwemojiAsset;

TwemojiAsset::register($this);
```

CSS
---

[](#css)

Because every project will have different size requirements, the css is not part of the extension. The default size of the emojis is 72x72. You can change this easily with some css.

```
img.emoji {
  height: 1em;
  width: 1em;
  margin: 0 .05em 0 .1em;
  vertical-align: -0.1em;
}
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Unknown

Total

1

Last Release

2944d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

yii2emojitwemoji

### Embed Badge

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

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

###  Alternatives

[astrotomic/php-twemoji

Easily generate Twemoji URLs

3480.0k2](/packages/astrotomic-php-twemoji)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[jsila/emoji-images-php

Parses text for emoji names and converts them to corresponding images.

1115.4k](/packages/jsila-emoji-images-php)

PHPackages © 2026

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