mod
Go to file
2024-03-28 17:12:16 +08:00
.github update github folder link (#64) 2022-12-25 10:07:44 +01:00
docs update docs folder links (#65) 2022-12-27 08:09:38 +01:00
src update 2024-03-28 16:27:15 +08:00
tests update 2024-03-28 16:27:15 +08:00
.editorconfig Init. v1.0.0 2021-02-10 00:04:59 +03:00
.gitignore Init. v1.0.0 2021-02-10 00:04:59 +03:00
CHANGELOG.md Add attribute brandImageOptions to NavBar (#79) 2023-10-20 16:56:35 +02:00
composer.json 更新 composer.json 2024-03-28 08:59:01 +00:00
LICENSE.md copied missing tests and actions and docs from bs4 2021-07-09 11:53:24 +02:00
phpunit.xml.dist update 2024-03-28 16:27:15 +08:00
README.md 更新说明 2024-03-28 17:12:16 +08:00

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']) ?>