PHPackages                             yiisoft/yii2-bootstrap - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. yiisoft/yii2-bootstrap

ActiveYii2-extension[Framework](/categories/framework)

yiisoft/yii2-bootstrap
======================

The Twitter Bootstrap extension for the Yii framework

2.0.11(4y ago)19819.6M—2.1%190[14 issues](https://github.com/yiisoft/yii2-bootstrap/issues)[5 PRs](https://github.com/yiisoft/yii2-bootstrap/pulls)20BSD-3-ClausePHPCI passing

Since Nov 25Pushed 3mo ago45 watchersCompare

[ Source](https://github.com/yiisoft/yii2-bootstrap)[ Packagist](https://packagist.org/packages/yiisoft/yii2-bootstrap)[ GitHub Sponsors](https://github.com/yiisoft)[ Fund](https://opencollective.com/yiisoft)[ RSS](/packages/yiisoft-yii2-bootstrap/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (17)Used By (20)Security (1)

 [ ![](https://camo.githubusercontent.com/7e58968e2b6df837d6e5d98e5fe42dabdd4f389069f7f77c4de9d08b19b4dbb4/68747470733a2f2f76342d616c7068612e676574626f6f7473747261702e636f6d2f6173736574732f6272616e642f626f6f7473747261702d736f6c69642e737667) ](https://getbootstrap.com/docs/3.4/)

Twitter Bootstrap Extension for Yii 2
=====================================

[](#twitter-bootstrap-extension-for-yii-2)

This is the Twitter Bootstrap extension for [Yii framework 2.0](https://www.yiiframework.com). It encapsulates [Bootstrap 3](https://getbootstrap.com/docs/3.4/) components and plugins in terms of Yii widgets, and thus makes using Bootstrap components/plugins in Yii applications extremely easy.

For license information check the [LICENSE](LICENSE.md)-file.

Documentation is at [docs/guide/README.md](docs/guide/README.md).

[![Latest Stable Version](https://camo.githubusercontent.com/2ce7e82591984753ae34aad0321ec163d54c614b62a4bc23b203e5efe5f6f096/68747470733a2f2f706f7365722e707567782e6f72672f796969736f66742f796969322d626f6f7473747261702f762f737461626c652e706e67)](https://packagist.org/packages/yiisoft/yii2-bootstrap)[![Total Downloads](https://camo.githubusercontent.com/8c8d928e99f201bdffd2d3805b107087923514ec543c1d4f7e144e935a246d13/68747470733a2f2f706f7365722e707567782e6f72672f796969736f66742f796969322d626f6f7473747261702f646f776e6c6f6164732e706e67)](https://packagist.org/packages/yiisoft/yii2-bootstrap)[![Build Status](https://github.com/yiisoft/yii2-bootstrap/workflows/build/badge.svg)](https://github.com/yiisoft/yii2-bootstrap/actions)[![codecov](https://camo.githubusercontent.com/4272718930e1373fa4f3d3486a78eb73c6570e27dfae4d66535a450ea52b0c78/68747470733a2f2f636f6465636f762e696f2f67682f796969736f66742f796969322d626f6f7473747261702f67726170682f62616467652e737667)](https://codecov.io/gh/yiisoft/yii2-bootstrap)

Installation
------------

[](#installation)

Important

- The minimum required [PHP](https://www.php.net/) version is PHP `7.4`.
- It works best with PHP `8`.

The preferred way to install this extension is through [composer](https://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist yiisoft/yii2-bootstrap

```

or add

```
"yiisoft/yii2-bootstrap": "~2.0.0"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

For example, the following single line of code in a view file would render a Bootstrap Progress plugin:

```
