xtetis/yii2-bootstrap4-glyphicons

如何在Bootstrap 4中使用Glyphicons

该软件包的官方仓库似乎已丢失,因此该软件包已被冻结。

安装次数: 3,038

依赖项: 0

建议者: 0

安全: 0

类型:yii2-extension

dev-master 2019-05-13 16:08 UTC

This package is not auto-updated.

Last update: 2020-04-14 19:47:09 UTC


README

如果您想在Yii2项目中使用Bootstrap 4的Glyphicons (https://github.com/yiisoft/yii2-bootstrap4)

安装

安装此扩展的首选方式是通过 composer

将仓库添加到您的composer.json文件中。

"repositories":[
    ...
    {
        "type": "git",
        "url": "https://xtetis@bitbucket.org/xtetis/yii2-bootstrap4-glyphicons.git"
    }
    ...
]

运行以下命令之一:

php composer.phar require --prefer-dist xtetis/yii2-bootstrap4-glyphicons "*"

或者添加以下内容到您的 composer.json 文件的require部分。

"xtetis/yii2-bootstrap4-glyphicons": "*"

使用方法

扩展安装完成后,只需在您的布局代码中简单使用它即可。

<?php
use xtetis\bootstrap4glyphicons\assets\GlyphiconAsset;
GlyphiconAsset::register($this);