yiisoft / yii-bootstrap4
Yii Framework Twitter Bootstrap 4 Extension
Fund package maintenance!
Open Collective
yiisoft
Installs: 8 708
Dependents: 7
Suggesters: 0
Security: 0
Stars: 22
Watchers: 18
Forks: 15
Open Issues: 0
Requires
- php: ^7.4|^8.0
- npm-asset/bootstrap: ^4.5.3
- npm-asset/jquery: ^3.5.1
- oomphinc/composer-installers-extender: ^2.0.0
- yiisoft/arrays: ^1.0
- yiisoft/assets: ^1.0@dev
- yiisoft/html: ^3.0@dev
- yiisoft/json: ^1.0
- yiisoft/widget: ^3.0@dev
Requires (Dev)
- phpunit/phpunit: ^9.4
- roave/infection-static-analysis-plugin: ^1.5
- spatie/phpunit-watcher: ^1.23
- vimeo/psalm: ^4.2
- yiisoft/aliases: ^1.0
- yiisoft/di: ^3.0@dev
Provides
This package is auto-updated.
Last update: 2021-02-08 11:20:36 UTC
README
Yii Framework Twitter Bootstrap 4 Extension
⚠️ Please do not start new projects with Bootstrap 4. There is Bootstrap 5 package available.
This Yii Framework extension encapsulates Twitter Bootstrap 4 components and plugins in terms of Yii widgets, and thus makes using Bootstrap components/plugins in Yii applications extremely easy.
Documentation is at docs/guide/README.md.
Installation
The preferred way to install this extension is through composer.
composer require yiisoft/yii-bootstrap4
Usage
For example, the following single line of code in a view file would render a Bootstrap Progress plugin:
<?= Progress::widget()->percent('60')->label(test); ?>
Read Documentation for more information
Unit testing
The package is tested with PHPUnit. To run tests:
./vendor/bin/phpunit
Mutation testing
The package tests are checked with Infection mutation framework. To run it:
./vendor/bin/infection
Static analysis
The code is statically analyzed with Psalm. To run static analysis:
./vendor/bin/psalm
Support the project
Follow updates
License
The Yii Framework Twitter Bootstrap 4 Extension is free software. It is released under the terms of the BSD License.
Please see LICENSE
for more information.
Maintained by Yii Software.