https://github.com/derekisbusy/yii2-bootstrap4
Bootstrap 4 for Yii2 projects
https://github.com/derekisbusy/yii2-bootstrap4
bootstrap bs4 yii2 yii2-asset yii2-extension
Last synced: 3 months ago
JSON representation
Bootstrap 4 for Yii2 projects
- Host: GitHub
- URL: https://github.com/derekisbusy/yii2-bootstrap4
- Owner: derekisbusy
- License: mit
- Created: 2019-06-22T18:55:43.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-24T17:04:08.000Z (about 7 years ago)
- Last Synced: 2025-11-27T14:52:40.683Z (7 months ago)
- Topics: bootstrap, bs4, yii2, yii2-asset, yii2-extension
- Language: PHP
- Size: 102 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Yii2 Bootstrap 4
================
Bootstrap 4 assets for Yii2
Installation
------------
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
php composer.phar require --prefer-dist derekisbusy/yii2-bootstrap4:dev-master
```
or add
```
"derekisbusy/yii2-bootstrap4": "dev-master"
```
to the require section of your `composer.json` file.
Usage
-----
Once the extension is installed, simply use it by adding it to your view :
```php
use \derekisbusy\bootstrap4\BootstrapAsset;
BootstrapAsset::register($this);
```
or by adding it to another assets dependencies list :
```php
public $depends = [
'derekisbusy\bootstrap4\BootstrapAsset'
];
```
Resources
---------
* [twbs/bootstrap](https://github.com/twbs/bootstrap#documentation)
* [Bootrap 4 docs](https://getbootstrap.com/docs/4.3/getting-started/introduction/)
* [Bootrap 4 examples](https://getbootstrap.com/docs/4.3/examples/)
* [Yii2 assets](https://www.yiiframework.com/doc/guide/2.0/en/structure-assets)