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

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

yangshihe/yii2-emoji
====================

Yii2 emoji

1.0.2(9y ago)183nullPHPPHP &gt;=5.4.0

Since Jan 4Pushed 9y ago1 watchersCompare

[ Source](https://github.com/yangshihe/yii2-emoji)[ Packagist](https://packagist.org/packages/yangshihe/yii2-emoji)[ RSS](/packages/yangshihe-yii2-emoji/feed)WikiDiscussions master Synced today

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

Yii2 emoji
==========

[](#yii2-emoji)

---

基于Yii2 处理emoji表情,这次到位。 顾不得格式了,简单些几句.

描述
--

[](#描述)

### 安装

[](#安装)

Either run

```
$ composer require yangshihe/yii2-emoji

```

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

### 配置相关

[](#配置相关)

```
后端部分
use yangshihe\emoji\Emoji;

//实现方式: (比如微信公众号的昵称含有表情)则如下:
$emoji = new Emoji();
$nickname = $emoji->emoji_unified_to_html($data['nickname']);
// OR
$nickname = (new Emoji())->emoji_unified_to_html($data['nickname']);

// 然后存入数据库神马的
//........

//前端部分 需要视图的部分//
use yangshihe\emoji\EmojiAsset;

//按需加载
EmojiAsset::register($this->getView());

//OR
//依赖加载
//AppAsset.php

    public $depends = [
        'yii\web\YiiAsset',
        .......code.........
        'yangshihe\emoji\EmojiAsset'
    ];

// 然后你就能看到和微信一模一样的表情了.
```

Demo
----

[](#demo)

暂无

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

3452d ago

### Community

Maintainers

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

---

Top Contributors

[![yangshihe](https://avatars.githubusercontent.com/u/16794024?v=4)](https://github.com/yangshihe "yangshihe (15 commits)")

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)

PHPackages © 2026

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