xtetis / yii2-bootstrap4-glyphicons
How to use Glyphicons with Bootstrap 4
This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.
Installs: 3 038
Dependents: 0
Suggesters: 0
Security: 0
Type:yii2-extension
pkg:composer/xtetis/yii2-bootstrap4-glyphicons
Requires
- yiisoft/yii2: ~2.0.0
 
This package is not auto-updated.
Last update: 2020-04-14 19:47:09 UTC
README
If you want use Glyphicons in your Yii2 project with Bootstrap 4 (https://github.com/yiisoft/yii2-bootstrap4)
Installation
The preferred way to install this extension is through composer.
Add the repo to your composer.json.
"repositories":[
    ...
    {
        "type": "git",
        "url": "https://[email protected]/xtetis/yii2-bootstrap4-glyphicons.git"
    }
    ...
]
Either run
php composer.phar require --prefer-dist xtetis/yii2-bootstrap4-glyphicons "*"
or add
"xtetis/yii2-bootstrap4-glyphicons": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your Layout code:
<?php
use xtetis\bootstrap4glyphicons\assets\GlyphiconAsset;
GlyphiconAsset::register($this);