Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/airani/yii2-bootstrap-rtl
This is the Twitter Bootstrap RTL (Right to Left) extension for Yii 2.
https://github.com/airani/yii2-bootstrap-rtl
Last synced: about 7 hours ago
JSON representation
This is the Twitter Bootstrap RTL (Right to Left) extension for Yii 2.
- Host: GitHub
- URL: https://github.com/airani/yii2-bootstrap-rtl
- Owner: airani
- Created: 2015-03-23T13:58:30.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-01-07T13:49:16.000Z (almost 6 years ago)
- Last Synced: 2024-10-08T18:12:11.013Z (about 1 month ago)
- Language: PHP
- Size: 2.93 KB
- Stars: 5
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
Twitter Bootstrap RTL Extension for Yii 2
=========================================This is the Twitter Bootstrap RTL (Right to Left) extension for Yii 2. It create an AssetBundle for [Rtl bootstrap](https://github.com/morteza/bootstrap-rtl).
Installation
------------The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
php composer.phar require --prefer-dist airani/yii2-bootstrap-rtl
```or add
```
"airani/yii2-bootstrap-rtl": "*"
```to the require section of your `composer.json` file.
For using this asset bundle you need just add this line `'airani\bootstrap\BootstrapRtlAsset'` in `$depends` of `AppAsset` or any asset bundels you work that.
Example:
```php
namespace backend\assets;use yii\web\AssetBundle;
class AppAsset extends AssetBundle
{
public $basePath = '@webroot';
public $baseUrl = '@web';
public $css = [
'css/site.css',
];
public $depends = [
'yii\web\YiiAsset',
'yii\bootstrap\BootstrapAsset',
'airani\bootstrap\BootstrapRtlAsset',
];
}
```