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.

README.md 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. Twitter Bootstrap Extension for Yii 2
  2. =====================================
  3. This is the Twitter Bootstrap extension for Yii 2. 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. This repository is a git submodule of <https://github.com/yiisoft/yii2>.
  7. Please submit issue reports and pull requests to the main repository.
  8. For license information check the [LICENSE](LICENSE.md)-file.
  9. Installation
  10. ------------
  11. The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
  12. Either run
  13. ```
  14. php composer.phar require --prefer-dist yiisoft/yii2-bootstrap
  15. ```
  16. or add
  17. ```
  18. "yiisoft/yii2-bootstrap": "~2.0.0"
  19. ```
  20. to the require section of your `composer.json` file.
  21. Usage
  22. ----
  23. For example, the following
  24. single line of code in a view file would render a Bootstrap Progress plugin:
  25. ```php
  26. <?= yii\bootstrap\Progress::widget(['percent' => 60, 'label' => 'test']) ?>
  27. ```