cinghie / yii2-fontawesome
Asset Bundle to include Font Awesome on your Yii 2 project
Installs: 5 584
Dependents: 3
Suggesters: 0
Security: 0
Stars: 6
Watchers: 4
Forks: 2
Open Issues: 0
Type:yii2-extension
Requires
- bower-asset/fontawesome: ^5.15.4
- yiisoft/yii2: ^2.0.14
Requires (Dev)
- roave/security-advisories: dev-master
README
Asset Bundle to include Font Awesome on your Yii 2 project: https://github.com/FortAwesome/Font-Awesome
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require cinghie/yii2-fontawesome "^1.4.4"
or add this line to the require section of your composer.json
file.
"cinghie/yii2-fontawesome": "^1.4.4"
Configuration
Add in the view for normal CSS and JS
use cinghie\fontawesome\FontAwesomeAsset;
FontAwesomeAsset::register($this);
Add in the view for minify CSS and JS
use cinghie\fontawesome\FontAwesomeMinifyAsset;
FontAwesomeMinifyAsset::register($this);
Versioning
- Fontawesome 5: from version Release 1.4.3
- Fontawesome 4: last version Release 1.3.4