alhama19/yii2-bootstrap4-rtl

The Twitter Bootstrap 4 Rtl extension for the Yii 2.0 framework


Keywords
yii2, rtl, bootstrap4
License
BSD-4-Clause

Documentation

Twitter Bootstrap 4 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 4

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist alhama19/yii2-bootstrap4-rtl

or add

"alhama19/yii2-bootstrap4-rtl": "*"

to the require section of your composer.json file.

For using this asset bundle you need just add this line 'alhama19\bootstrap\Bootstrap4RtlAsset' in $depends of AppAsset or any asset bundles you work that.

Example:

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',
        'alhama19\bootstrap\Bootstrap4RtlAsset',
    ];
}