2017 © Pedro Peláez
 

yii2-extension yii2-font-awesome-asset

Adding FontAwesome to your Yii2 project via Composer

image

sersid/yii2-font-awesome-asset

Adding FontAwesome to your Yii2 project via Composer

  • Thursday, November 27, 2014
  • by Sersid
  • Repository
  • 1 Watchers
  • 2 Stars
  • 5,521 Installations
  • PHP
  • 6 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 2 Versions
  • 8 % Grown

The README.md

Yii2 FontAwesome Asset

Adding FontAwesome to your Yii2 project via Composer, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist sersid/yii2-font-awesome-asset "*"

or add, (*4)

"sersid/yii2-font-awesome-asset": "*"

to the require section of your composer.json file., (*5)

Usage

The following example is if you wish to register the bundle on a specific view, (*6)

// this code is written on that specific view
sersid\fontawesome\Asset::register($this);

But it could be that you wish to use it as part of another asset bundle or globally registered on your application. For the following example, we going to registered as part of the main application asset bundle AppAsset:, (*7)

class AppAsset extends AssetBundle
{
    public $depends = [
        ...
        'sersid\fontawesome\Asset'
    ];
}

The Versions

27/11 2014

dev-master

9999999-dev

Adding FontAwesome to your Yii2 project via Composer

  Sources   Download

BSD-4-Clause

The Requires

 

by Avatar Sersid

extension yii2 asset font-awesome fontawesome font awesome yii2-fontawesome

27/11 2014

v1.0.0

1.0.0.0

Adding FontAwesome to your Yii2 project via Composer

  Sources   Download

BSD-4-Clause

The Requires

 

by Avatar Sersid

extension yii2 asset font-awesome fontawesome font awesome yii2-fontawesome