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

dev-master 2019-06-28 19:21 UTC

This package is auto-updated.

Last update: 2024-10-29 05:28:43 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> 

Documentation