Skip to content

A simple way to add Twemoji support to your Yii2 project.

Notifications You must be signed in to change notification settings

cozumel424/yii2-twemoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Yii2 Twemoji

Latest Stable Version Total Downloads License

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;
}

About

A simple way to add Twemoji support to your Yii2 project.

Resources

Stars

Watchers

Forks

Packages

No packages published