commit | author | age
|
2207d6
|
1 |
<p align="center"> |
W |
2 |
<a href="http://getbootstrap.com/" target="_blank" rel="external"> |
|
3 |
<img src="https://v4-alpha.getbootstrap.com/assets/brand/bootstrap-solid.svg" height="80px"> |
|
4 |
</a> |
|
5 |
<h1 align="center">Twitter Bootstrap Extension for Yii 2</h1> |
|
6 |
<br> |
|
7 |
</p> |
|
8 |
|
|
9 |
This is the Twitter Bootstrap extension for [Yii framework 2.0](http://www.yiiframework.com). It encapsulates [Bootstrap 3](http://getbootstrap.com/) components |
|
10 |
and plugins in terms of Yii widgets, and thus makes using Bootstrap components/plugins |
|
11 |
in Yii applications extremely easy. |
|
12 |
|
|
13 |
For license information check the [LICENSE](LICENSE.md)-file. |
|
14 |
|
|
15 |
Documentation is at [docs/guide/README.md](docs/guide/README.md). |
|
16 |
|
|
17 |
[![Latest Stable Version](https://poser.pugx.org/yiisoft/yii2-bootstrap/v/stable.png)](https://packagist.org/packages/yiisoft/yii2-bootstrap) |
|
18 |
[![Total Downloads](https://poser.pugx.org/yiisoft/yii2-bootstrap/downloads.png)](https://packagist.org/packages/yiisoft/yii2-bootstrap) |
|
19 |
[![Build Status](https://travis-ci.org/yiisoft/yii2-bootstrap.svg?branch=master)](https://travis-ci.org/yiisoft/yii2-bootstrap) |
|
20 |
|
|
21 |
|
|
22 |
Installation |
|
23 |
------------ |
|
24 |
|
|
25 |
The preferred way to install this extension is through [composer](http://getcomposer.org/download/). |
|
26 |
|
|
27 |
Either run |
|
28 |
|
|
29 |
``` |
|
30 |
php composer.phar require --prefer-dist yiisoft/yii2-bootstrap |
|
31 |
``` |
|
32 |
|
|
33 |
or add |
|
34 |
|
|
35 |
``` |
|
36 |
"yiisoft/yii2-bootstrap": "~2.0.0" |
|
37 |
``` |
|
38 |
|
|
39 |
to the require section of your `composer.json` file. |
|
40 |
|
|
41 |
Usage |
|
42 |
---- |
|
43 |
|
|
44 |
For example, the following |
|
45 |
single line of code in a view file would render a Bootstrap Progress plugin: |
|
46 |
|
|
47 |
```php |
|
48 |
<?= yii\bootstrap\Progress::widget(['percent' => 60, 'label' => 'test']) ?> |
|
49 |
``` |