cozumel/yii2-twemoji
Composer 安装命令:
composer require cozumel/yii2-twemoji
包简介
Use Twemoji in Yii2.
README 文档
README
A simple way to add Twemoji support to your Yii2 project.
Installation
The preferred way to install this extension is through composer.
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
Once the extension is installed, simply use it in your code by :
use cozumel\twemoji\TwemojiAsset; TwemojiAsset::register($this);
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; }
统计信息
- 总下载量: 467
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2018-04-21