iutbay/yii2-fontawesome

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (0.0.1.1) of this package.

Simple Font Awesome helper for Yii2

Maintainers

👁 iutbay

Package info

github.com/iutbay/yii2-fontawesome

Issues

Type:yii2-extension

pkg:composer/iutbay/yii2-fontawesome

Statistics

Installs: 43 434

Dependents: 10

Suggesters: 0

Stars: 3

0.0.1.1 2017-05-02 11:33 UTC

Requires

None

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

Unknown License 117f5b51f19466510b7f80dac66106f82131f849

  • Kevin LEVRON <kevin.levron.woop@gmail.com>

extensionFontAwesomeiconyii2

This package is not auto-updated.

Last update: 2025-10-23 20:36:16 UTC


README

Font Awesome helper for Yii2.

Installation

The preferred way to install this helper is through composer.

Either run

php composer.phar require "iutbay/yii2-fontawesome" "*"

or add

"iutbay/yii2-fontawesome" : "*"

to the require section of your application's composer.json file.

Assets

To include Font Awesome assets, you should register it in view :

\iutbay\yii2-fontawesome\FontAwesomeAsset::register($this);

Or as dependency in your app asset bundle :

public $depends = [
 'iutbay\yii2fontawesome\FontAwesomeAsset',
];

Usage

use iutbay\yii2fontawesome\FontAwesome as FA;

// home icon : <i class="fa fa-home"></i>
echo FA::icon('home');

// 2x home icon : <i class="fa fa-home fa-2x"></i>
echo FA::icon('home 2x');

// fixed width home icon : <i class="fa fa-home fa-fw"></i>
echo FA::icon('home fw');