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

Abandoned → [yiisoft/yii-bootstrap5](/?search=yiisoft%2Fyii-bootstrap5)ArchivedLibrary[Framework](/categories/framework)

yiisoft/yii-bootstrap4
======================

Yii Framework Twitter Bootstrap 4 Extension

238.7k14PHP

Since Feb 8Pushed 5y ago12 watchersCompare

[ Source](https://github.com/yiisoft/yii-bootstrap4)[ Packagist](https://packagist.org/packages/yiisoft/yii-bootstrap4)[ RSS](/packages/yiisoft-yii-bootstrap4/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

 [ ![](https://camo.githubusercontent.com/8317c17418b39410a660f5149071d26c5023c0d5fb2b7ebb771324812f666d73/68747470733a2f2f796969736f66742e6769746875622e696f2f646f63732f696d616765732f7969695f6c6f676f2e737667) ](https://github.com/yiisoft) [ ![](https://camo.githubusercontent.com/7e58968e2b6df837d6e5d98e5fe42dabdd4f389069f7f77c4de9d08b19b4dbb4/68747470733a2f2f76342d616c7068612e676574626f6f7473747261702e636f6d2f6173736574732f6272616e642f626f6f7473747261702d736f6c69642e737667) ](http://getbootstrap.com/)

Yii Framework Twitter Bootstrap 4 Extension
===========================================

[](#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](http://www.yiiframework.com/) extension encapsulates [Twitter Bootstrap 4](https://getbootstrap.com/docs/4.1/getting-started/introduction/) 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](docs/guide/README.md).

[![Latest Stable Version](https://camo.githubusercontent.com/1f6e30bfadc23c6f170583fd4bf8216bd4b5c399c0f1e74183fcdac80353da3c/68747470733a2f2f706f7365722e707567782e6f72672f796969736f66742f7969692d626f6f747374726170342f762f737461626c652e706e67)](https://packagist.org/packages/yiisoft/yii-bootstrap4)[![Total Downloads](https://camo.githubusercontent.com/d257499a0c7e2e03e00f953a6d047ec97296e0c1efdbda7430668c991ecacf15/68747470733a2f2f706f7365722e707567782e6f72672f796969736f66742f7969692d626f6f747374726170342f646f776e6c6f6164732e706e67)](https://packagist.org/packages/yiisoft/yii-bootstrap4)[![Build status](https://github.com/yiisoft/yii-bootstrap4/workflows/build/badge.svg)](https://github.com/yiisoft/yii-bootstrap4/actions?query=workflow%3Abuild)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8b0ea453b004acdb090bd7449baecdc45240959bfc8199f6a97c8619df6e9047/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f796969736f66742f7969692d626f6f747374726170342f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/yiisoft/yii-bootstrap4/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/9854d13f8d0d4d2b5214b9cb4bb33b2b56832df99f9924773a448bef65aca034/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f796969736f66742f7969692d626f6f747374726170342f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/yiisoft/yii-bootstrap4/?branch=master)[![Mutation testing badge](https://camo.githubusercontent.com/b3ff5f0155639d2e4e8e6bf34e81273153e46fd786f7f4aac513f728fd0a45e7/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d253246796969736f66742532467969692d626f6f747374726170342532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/yiisoft/yii-bootstrap4/master)[![static analysis](https://github.com/yiisoft/yii-bootstrap4/workflows/static%20analysis/badge.svg)](https://github.com/yiisoft/yii-bootstrap4/actions?query=workflow%3A%22static+analysis%22)[![type-coverage](https://camo.githubusercontent.com/0d6820da3d2dbb63d613e6d6e302d1f78c5e0c1af1663c1ab8af0a27fe1e5c9c/68747470733a2f2f73686570686572642e6465762f6769746875622f796969736f66742f7969692d626f6f747374726170342f636f7665726167652e737667)](https://shepherd.dev/github/yiisoft/yii-bootstrap4)

### Installation

[](#installation)

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

```
composer require yiisoft/yii-bootstrap4

```

### Usage

[](#usage)

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

```
