PHPackages                             yiisoft/yii2-bootstrap4 - 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-bootstrap4

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

yiisoft/yii2-bootstrap4
=======================

The Twitter Bootstrap extension for the Yii framework

2.0.12(1y ago)2183.3M—9.6%103[16 issues](https://github.com/yiisoft/yii2-bootstrap4/issues)[1 PRs](https://github.com/yiisoft/yii2-bootstrap4/pulls)20BSD-3-ClausePHPCI passing

Since Jan 28Pushed 3mo ago34 watchersCompare

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

READMEChangelogDependencies (5)Versions (15)Used By (20)

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

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

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

This is the Twitter Bootstrap extension for [Yii framework 2.0](https://www.yiiframework.com). It encapsulates [Bootstrap 4](https://getbootstrap.com/) 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/3e35d46768466b5cf85fb2b0407594eb738e676d411c855dce6bd9262e7975d5/68747470733a2f2f706f7365722e707567782e6f72672f796969736f66742f796969322d626f6f747374726170342f762f737461626c652e706e67)](https://packagist.org/packages/yiisoft/yii2-bootstrap4)[![Total Downloads](https://camo.githubusercontent.com/5e42ea47c6b6f77b5d914aa3b4a5cd99669d7178be53d8df0e41ffc08fc591cd/68747470733a2f2f706f7365722e707567782e6f72672f796969736f66742f796969322d626f6f747374726170342f646f776e6c6f6164732e706e67)](https://packagist.org/packages/yiisoft/yii2-bootstrap4)[![Build Status](https://github.com/yiisoft/yii2-bootstrap4/workflows/build/badge.svg)](https://github.com/yiisoft/yii2-bootstrap4/actions)[![codecov](https://camo.githubusercontent.com/f8cadf0a9efe1f5ef1104b9fa092594e1913908fca5dfeb279bbe3f0b53c30e0/68747470733a2f2f636f6465636f762e696f2f67682f796969736f66742f796969322d626f6f747374726170342f67726170682f62616467652e737667)](https://codecov.io/gh/yiisoft/yii2-bootstrap4)

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-bootstrap4

```

or add

```
"yiisoft/yii2-bootstrap4": "~2.0.6"

```

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:

```
