dev-master
9999999-dev https://github.com/dalencar/yii2-webfontkitSet of icon frameworks for use in Yii Framework 2.0
BSD 3-Clause
The Requires
extension yii2 yii font webfont font-face
Set of icon frameworks for use in Yii Framework 2.0
This extension offers an easy method to setup various webfont frameworks to work with Yii Framework 2.0., (*1)
The preferred way to install this extension is through composer., (*2)
Note: Check the composer.json for this extension's requirements and dependencies., (*3)
Either run, (*4)
$ php composer.phar require dalencar/yii2-webfontkit "dev-master"
or add, (*5)
"dalencar/yii2-webfontkit": "dev-master"
to the require
section of your composer.json
file., (*6)
In case you wish to setup one or more Webfont framework globally, set the parameter webfontkit-framework
in the params
array of your Yii Configuration File., (*7)
'params' => [ 'webfontkit-framework' => [ 'os', // Open Sans Webfont framework ], ]
To initialize the globally setup framework, you can proceed in one of two ways:, (*8)
use dalencar\webfontkit\WebFontKit; WebFontKit::register($this);
public $depends [ 'dalencar\webfontkit\WebFontKit', ],
You can also call each icon-framework individually in your view or view layout like below. Map any icon framework within each view as in the example below., (*9)
use dalencar\webfontkit\WebFontKit; WebFontKit::register($this, WebFontKit::OS); // Register the Open Sans webfont framework
yii2-webfontkit is released under the BSD 3-Clause License. See the bundled LICENSE.md
for details., (*10)
Set of icon frameworks for use in Yii Framework 2.0
BSD 3-Clause
extension yii2 yii font webfont font-face