horat1us / yii2-chain-bootstrap
Yii2 Bootstrap Chaining
Installs: 1 494
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 1
Requires
- php: >=7.4
- yiisoft/yii2: ^2.0.15
Requires (Dev)
- phpunit/phpunit: ^9.3
- squizlabs/php_codesniffer: ^3.5
This package is auto-updated.
Last update: 2024-11-16 04:27:46 UTC
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, ]; }