yii2-extensions / asset-bootstrap5
为 Yii 框架准备的 Bootstrap5 资产
0.1.1
2024-01-23 19:02 UTC
Requires
- php: >=8.1
- npm-asset/bootstrap: ^5.3
- yiisoft/yii2: ^2.0.49 || ^2.2
Requires (Dev)
- maglnet/composer-require-checker: ^4.7
- php-forge/support: ^0.1
- phpunit/phpunit: ^10.5
- roave/infection-static-analysis-plugin: ^1.34
- symplify/easy-coding-standard: ^12.1
- yii2-extensions/phpstan: dev-main
This package is auto-updated.
Last update: 2024-09-23 20:40:31 UTC
README
Twitter Bootstrap 5 资产包。
安装
推荐通过 composer 安装此扩展。
运行以下命令
composer require --prefer-dist yii2-extensions/asset-bootstrap5:"^0.1"
或将以下内容添加到您的 composer.json
文件的要求部分。
"yii2-extensions/asset-bootstrap5":"^0.1"
基本用法
<?php declare(strict_types=1); use Yii2\Asset\BootstrapAsset; BootstrapAsset::register($this);
<?php declare(strict_types=1); use Yii2\Asset\BootstrapPluginAsset; BootstrapPluginAsset::register($this);
CDN 使用
<?php declare(strict_types=1); use Yii2\Asset\BootstrapCdnAsset; BootstrapCdnAsset::register($this);
<?php declare(strict_types=1); use Yii2\Asset\BootstrapPluginCdnAsset; BootstrapPluginCdnAsset::register($this);
测试
查看文档测试 了解有关测试的信息。
优质代码
支持的 Yii2 版本
我们的社交网络
许可证
MIT 许可证。有关更多信息,请参阅 许可证文件。