tirrex / php-yii-ext-bootstrap4-glyphicons
How to use Glyphicons with Bootstrap 4
dev-master
2023-08-21 12:57 UTC
Requires
- yiisoft/yii2: ~2.0.0
This package is not auto-updated.
Last update: 2025-09-02 21:00:55 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://bitbucket.org/tirrex/php-yii-ext-bootstrap4-glyphicons.git"
}
...
]
Either run
php composer.phar require --prefer-dist tirrex/php-yii-ext-bootstrap4-glyphicons "*"
or add
"tirrex/php-yii-ext-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 tirrex\bootstrap4glyphicons\assets\GlyphiconAsset;
GlyphiconAsset::register($this);