sersid/yii2-font-awesome-asset Adding FontAwesome to your Yii2 project via Composer

extensionfont-awesomeassetfontawesomeyii2-fontawesome

Yii2 FontAwesome Asset

Adding FontAwesome to your Yii2 project via Composer

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist sersid/yii2-font-awesome-asset "*"

or add

"sersid/yii2-font-awesome-asset": "*"

to the require section of your composer.json file.

Usage

The following example is if you wish to register the bundle on a specific view

// this code is written on that specific view
sersid\fontawesome\Asset::register($this);

But it could be that you wish to use it as part of another asset bundle or globally registered on your application. For the following example, we going to registered as part of the main application asset bundle AppAsset:

class AppAsset extends AssetBundle
{
    public $depends = [
        ...
        'sersid\fontawesome\Asset'
    ];
}

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



v1.0.0 is the latest of one release



BSD-4-Clause license
Stats
2 github stars & 1 github forks
0 downloads in the last day
17 downloads in the last 30 days
11742 total downloads