Twitter Bootstrap 5 Extension for Yii 2 (Mod)
This is the Twitter Bootstrap extension for Yii framework 2.0. It encapsulates Bootstrap 5 components and plugins in terms of Yii widgets, and thus makes using Bootstrap components/plugins in Yii applications extremely easy.
For license information check the LICENSE-file.
Documentation is at docs/guide/README.md.
修改说明
由于原yiisoft/yii2-bootstrap5需要bower-asset/bootstrap,
而asset-packagist上意外缺失了bower-asset/bootstrap最新版本(5.3.x),
现在手动在composer.json添加bower-asset/bootstrap 5.3.x版本会出现错误,
我的项目需要使用bootstrap 5.3新增加的夜间模式,
所以我将原包修改了一下,将依赖的bower-asset/bootstrap改为npm-asset/bootstrap,
安装
The preferred way to install this extension is through composer.
add
{
"type": "vcs",
"url": "https://git.chenx221.cyou/chenx221/yii2-bootstrap5"
}
to the repositories section of your composer.json
file,
and add
"chenx221/yii2-bootstrap5": "dev-master"
to the require section of your composer.json
file,
Translations
The i18n configuration will be automatically added to your application configuration via bootstrapping process.
Usage
For example, the following single line of code in a view file would render a Bootstrap Progress plugin:
<?= yii\bootstrap5\Progress::widget(['percent' => 60, 'label' => 'test']) ?>