xtetis/yii2-bootstrap4-glyphicons How to use Glyphicons with Bootstrap 4

Bootstrap4 glyphicons for Yii2

  1. Installation
  2. Usage

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://xtetis@bitbucket.org/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);
?>```



1 0
1 follower
78 downloads
Yii Version: 2.0
License: Apache-2.0
Category: User Interface
Developed by: Valeriy Tihonenko
Created on: May 13, 2019
Last updated: (not set)
Packagist Profile
Code Repository

Related Extensions