# yii-bootstrap4
**Repository Path**: mirrors_yiisoft/yii-bootstrap4
## Basic Information
- **Project Name**: yii-bootstrap4
- **Description**: Yii Framework Bootstrap 4 support
- **Primary Language**: Unknown
- **License**: BSD-3-Clause
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-08-19
- **Last Updated**: 2026-02-07
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
Yii Framework Twitter Bootstrap 4 Extension
> ⚠️ Please do not start new projects with Bootstrap 4. There is [Bootstrap 5 package available](https://github.com/yiisoft/yii-bootstrap5).
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.
[Yii Framework]: http://www.yiiframework.com/
[Twitter Bootstrap 4]: https://getbootstrap.com/docs/4.1/getting-started/introduction/
Documentation is at [docs/guide/README.md](docs/guide/README.md).
[](https://packagist.org/packages/yiisoft/yii-bootstrap4)
[](https://packagist.org/packages/yiisoft/yii-bootstrap4)
[](https://github.com/yiisoft/yii-bootstrap4/actions?query=workflow%3Abuild)
[](https://scrutinizer-ci.com/g/yiisoft/yii-bootstrap4/?branch=master)
[](https://scrutinizer-ci.com/g/yiisoft/yii-bootstrap4/?branch=master)
[](https://dashboard.stryker-mutator.io/reports/github.com/yiisoft/yii-bootstrap4/master)
[](https://github.com/yiisoft/yii-bootstrap4/actions?query=workflow%3A%22static+analysis%22)
[](https://shepherd.dev/github/yiisoft/yii-bootstrap4)
### Installation
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
```
composer require yiisoft/yii-bootstrap4
```
### Usage
For example, the following
single line of code in a view file would render a Bootstrap Progress plugin:
```php
= Progress::widget()->percent('60')->label(test); ?>
```
Read [Documentation](docs/guide/README.md) for more information
### Unit testing
The package is tested with [PHPUnit](https://phpunit.de/). To run tests:
```shell
./vendor/bin/phpunit
```
### Mutation testing
The package tests are checked with [Infection](https://infection.github.io/) mutation framework. To run it:
```shell
./vendor/bin/infection
```
### Static analysis
The code is statically analyzed with [Psalm](https://psalm.dev/). To run static analysis:
```shell
./vendor/bin/psalm
```
### Support the project
[](https://opencollective.com/yiisoft)
### Follow updates
[](https://www.yiiframework.com/)
[](https://twitter.com/yiiframework)
[](https://t.me/yii3en)
[](https://www.facebook.com/groups/yiitalk)
[](https://yiiframework.com/go/slack)
## License
The Yii Framework Twitter Bootstrap 4 Extension is free software. It is released under the terms of the BSD License.
Please see [`LICENSE`](./LICENSE.md) for more information.
Maintained by [Yii Software](https://www.yiiframework.com/).