You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. Twitter Bootstrap Extension for Yii 2
  2. =====================================
  3. This is the Twitter Bootstrap extension for [Yii framework 2.0](http://www.yiiframework.com). It encapsulates [Bootstrap](http://getbootstrap.com/) components
  4. and plugins in terms of Yii widgets, and thus makes using Bootstrap components/plugins
  5. in Yii applications extremely easy.
  6. For license information check the [LICENSE](LICENSE.md)-file.
  7. Documentation is at [docs/guide/README.md](docs/guide/README.md).
  8. [![Latest Stable Version](https://poser.pugx.org/yiisoft/yii2-bootstrap/v/stable.png)](https://packagist.org/packages/yiisoft/yii2-bootstrap)
  9. [![Total Downloads](https://poser.pugx.org/yiisoft/yii2-bootstrap/downloads.png)](https://packagist.org/packages/yiisoft/yii2-bootstrap)
  10. [![Build Status](https://travis-ci.org/yiisoft/yii2-bootstrap.svg?branch=master)](https://travis-ci.org/yiisoft/yii2-bootstrap)
  11. Installation
  12. ------------
  13. The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
  14. Either run
  15. ```
  16. php composer.phar require --prefer-dist yiisoft/yii2-bootstrap
  17. ```
  18. or add
  19. ```
  20. "yiisoft/yii2-bootstrap": "~2.0.0"
  21. ```
  22. to the require section of your `composer.json` file.
  23. Usage
  24. ----
  25. For example, the following
  26. single line of code in a view file would render a Bootstrap Progress plugin:
  27. ```php
  28. <?= yii\bootstrap\Progress::widget(['percent' => 60, 'label' => 'test']) ?>
  29. ```