cinghie/yii2-fontawesome

Asset Bundle to include Font Awesome on your Yii 2 project

Installs: 5 274

Dependents: 2

Suggesters: 0

Security: 0

Stars: 6

Watchers: 4

Forks: 2

Open Issues: 0

Type:yii2-extension

1.4.4 2023-04-09 06:26 UTC

This package is auto-updated.

Last update: 2024-05-10 14:21:31 UTC


README

License Latest Stable Version Latest Release Date Latest Commit Total Downloads

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