The preferred way to install this extension is through composer.
Either run
composer require webvimark/yii2-fontawesome "*"
or add
"webvimark/yii2-fontawesome": "^1"
to the require section of your composer.json
file.
Once the extension is installed, simply use it in your code by :
webvimark\fontawesome\FontAwesomeAsset::register($this)
OR
class AppAsset extends AssetBundle
{
public $depends = [
...
'webvimark\fontawesome\FontAwesomeAsset',
];
}
Comments