derekisbusy / yii2-fontawesome
Font Awesome assets for Yii2 projects
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Language:CSS
Type:yii2-extension
Requires
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2024-11-29 05:57:04 UTC
README
Font Awesome assets for Yii2 projects
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist derekisbusy/yii2-fontawesome:dev-master
or add
"derekisbusy/yii2-fontawesome": "dev-master"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it by adding it to your view :
use \derekisbusy\fa\FontAwesomeAsset; FontAwesomeAsset::register($this);
or by adding it to another assets dependencies list :
public $depends = [ 'derekisbusy\fa\FontAwesomeAsset' ];
Then use the icons in your HTML
<i class="fas fa-camera"></i>