2017 © Pedro Peláez
 

library yii2-emoji

Yii2 emoji

image

yangshihe/yii2-emoji

Yii2 emoji

  • Monday, January 16, 2017
  • by rad120
  • Repository
  • 1 Watchers
  • 1 Stars
  • 55 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 22 % Grown

The README.md

Yii2 emoji


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

描述

安装

Either run, (*2)

$ composer require yangshihe/yii2-emoji 

to the require section of your composer.json file., (*3)

配置相关



后端部分 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

暂无, (*4)

The Versions

16/01 2017

dev-master

9999999-dev

Yii2 emoji

  Sources   Download

null

The Requires

 

16/01 2017

1.0.2

1.0.2.0

Yii2 emoji

  Sources   Download

null

The Requires

 

04/01 2017

1.0.01

1.0.01.0

Yii2 emoji

  Sources   Download

null

The Requires