Qiang Xue
11 years ago
52 changed files with 11340 additions and 11282 deletions
@ -0,0 +1,32 @@ |
|||||||
|
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. |
||||||
|
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 62 KiB |
@ -0,0 +1,22 @@ |
|||||||
|
{ |
||||||
|
"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" |
||||||
|
} |
Loading…
Reference in new issue