iutbay/yii2-fontawesome Simple Font Awesome helper for Yii2

extensioniconfontawesome

Font Awesome helper for Yii2

Font Awesome helper for Yii2.

Installation

The preferred way to install this helper is through composer.

Either run

php composer.phar require "iutbay/yii2-fontawesome" "*"

or add

"iutbay/yii2-fontawesome" : "*"

to the require section of your application's composer.json file.

Assets

To include Font Awesome assets, you should register it in view :

\iutbay\yii2-fontawesome\FontAwesomeAsset::register($this);

Or as dependency in your app asset bundle :

public $depends = [
    'iutbay\yii2fontawesome\FontAwesomeAsset',
];

Usage

use iutbay\yii2fontawesome\FontAwesome as FA;

// home icon : <i class="fa fa-home"></i>
echo FA::icon('home');

// 2x home icon : <i class="fa fa-home fa-2x"></i>
echo FA::icon('home 2x');

// fixed width home icon : <i class="fa fa-home fa-fw"></i>
echo FA::icon('home fw');

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



0.0.1.1 is the latest of 2 releases



Unknown license
Stats
3 github stars & 2 github forks
5 downloads in the last day
172 downloads in the last 30 days
38720 total downloads