gietos / yii2-ionicons
Asset Bundle for Yii2 with Ionicons
This package's canonical repository appears to be gone and the package has been frozen as a result.
Installs: 1 748
Dependents: 1
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 2
Type:yii2-extension
Requires
- php: >=5.4.0
- driftyco/ionicons: 2.0.*
- yiisoft/yii2: 2.0.*
This package is auto-updated.
Last update: 2020-02-21 16:15:34 UTC
README
Asset Bundle for Yii2 with Ionicons http://ionicons.com/
Installation
The suggested installation method is via composer:
composer require gietos/yii2-ionicons
Or add in composer.json
:
{
"require": {
"gietos/yii2-ionicons": "2.0.*"
}
}
Usage
In view
gietos\yii\ionicons\AssetBundle::register($this);
or as dependency in your asset bundle
class AppAsset extends AssetBundle { public $depends = [ '\gietos\yii\ionicons\AssetBundle' ]; }
Helper
use gietos\yii\ionicons\Ion; echo Ion::icon('heart'); // <i class="ion ion-heart"></i>