airani/yii2-bootstrap-rtl

The Twitter Bootstrap Rtl extension for the Yii 2.0 framework

Installs: 31 575

Dependents: 5

Suggesters: 0

Security: 0

Stars: 5

Watchers: 3

Forks: 3

Open Issues: 1

Type:yii2-extension

1.2.1 2019-01-07 13:43 UTC

This package is auto-updated.

Last update: 2024-12-08 07:44:35 UTC


README

This is the Twitter Bootstrap RTL (Right to Left) extension for Yii 2. It create an AssetBundle for Rtl bootstrap.

Installation

The preferred way to install this extension is through composer.

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:

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',
    ];
}