horat1us/yii2-chain-bootstrap
Composer 安装命令:
composer require horat1us/yii2-chain-bootstrap
包简介
Yii2 Bootstrap Chaining
README 文档
README
This package provides yii2 bootstrap interface implementation that allows chaining few bootstraps into one. It may be useful when package includes few bootstraps.
Previously it was included into horat1us/yii2-base package as BootstrapGroup.
Installation
Using packagist.org:
composer require horat1us/yii2-chain-bootstrap:^2.0
Usage
Append package Bootstrap to your application configuration
<?php // config.php use Horat1us\Yii\Chain; return [ 'bootstrap' => [ 'package' => [ 'class' => Chain\Bootstrap::class, 'chain' => [ BootstrapFirst::class, BootstrapSecond::class, ], ], ], // ... another application configuration ];
Or implement separate class
<?php // config.php namespace Package; use Horat1us\Yii\Chain; class Bootstrap extends Chain\Bootstrap { public array $chain = [ Package\Submodule\Bootstrap::class, ]; }
License
统计信息
- 总下载量: 1.73k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-03-21