Commit 83a93799 by Qiang Xue

moved bootstrap to extension

parent 6aa45b34
...@@ -16,8 +16,9 @@ ...@@ -16,8 +16,9 @@
"require": { "require": {
"php": ">=5.4.0", "php": ">=5.4.0",
"yiisoft/yii2": "dev-master", "yiisoft/yii2": "dev-master",
"yiisoft/yii2-bootstrap": "dev-master",
"yiisoft/yii2-debug": "dev-master", "yiisoft/yii2-debug": "dev-master",
"yiisoft/yii2-gii": "dev-master" "yiisoft/yii2-gii": "dev-master",
}, },
"scripts": { "scripts": {
"post-create-project-cmd": [ "post-create-project-cmd": [
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
"require": { "require": {
"php": ">=5.4.0", "php": ">=5.4.0",
"yiisoft/yii2": "dev-master", "yiisoft/yii2": "dev-master",
"yiisoft/yii2-bootstrap": "dev-master",
"yiisoft/yii2-debug": "dev-master", "yiisoft/yii2-debug": "dev-master",
"yiisoft/yii2-gii": "dev-master" "yiisoft/yii2-gii": "dev-master"
}, },
......
Twitter Bootstrap Extension for Yii 2
=====================================
This is the Twitter Bootstrap extension for Yii 2. It encapsulates Bootstrap components
and plugins in terms of Yii widgets, and thus makes using Bootstrap components/plugins
in Yii applications extremely easy. For example, the following
single line of code in a view file would render a Bootstrap Progress plugin:
```php
<?= yii\bootstrap\Progress::widget(['percent' => 60, 'label' => 'test']) ?>
```
Installation
------------
The preferred way to install this extension is [composer](http://getcomposer.org/download/).
Either run
```
php composer.phar require yiisoft/yii2-bootstrap "*"
```
or add
```
"yiisoft/yii2-bootstrap": "*"
```
to the require section of your `composer.json` file.
{
"name": "yiisoft/yii2-bootstrap",
"description": "The Twitter Bootstrap extension for the Yii framework",
"keywords": ["yii", "bootstrap"],
"type": "yii2-extension",
"license": "BSD-3-Clause",
"support": {
"issues": "https://github.com/yiisoft/yii2/issues?state=open",
"forum": "http://www.yiiframework.com/forum/",
"wiki": "http://www.yiiframework.com/wiki/",
"irc": "irc://irc.freenode.net/yii",
"source": "https://github.com/yiisoft/yii2"
},
"minimum-stability": "dev",
"require": {
"yiisoft/yii2": "*"
},
"autoload": {
"psr-0": { "yii\\bootstrap\\": "" }
},
"target-dir": "yii/bootstrap"
}
...@@ -13,7 +13,8 @@ ...@@ -13,7 +13,8 @@
}, },
"minimum-stability": "dev", "minimum-stability": "dev",
"require": { "require": {
"yiisoft/yii2": "*" "yiisoft/yii2": "*",
"yiisoft/yii2-bootstrap": "*"
}, },
"autoload": { "autoload": {
"psr-0": { "yii\\gii\\": "" } "psr-0": { "yii\\gii\\": "" }
......
...@@ -13,7 +13,8 @@ ...@@ -13,7 +13,8 @@
}, },
"minimum-stability": "dev", "minimum-stability": "dev",
"require": { "require": {
"yiisoft/yii2": "*" "yiisoft/yii2": "*",
"yiisoft/yii2-bootstrap": "*"
}, },
"autoload": { "autoload": {
"psr-0": { "yii\\jui\\": "" } "psr-0": { "yii\\jui\\": "" }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment