hauntd/yii2-basketjs-asset

basket.js asset for Yii 2.0 apps

Installs: 2 288

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

1.0.1 2015-05-20 20:10 UTC

This package is auto-updated.

Last update: 2024-11-21 20:03:58 UTC


README

Basket.js plugin asset for Yii 2.0 applications.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist hauntd/yii2-basketjs-asset "*"

or add

"hauntd/yii2-basketjs-asset": "*"

to the require section of your composer.json file.

Usage

To use this plugin extend your asset class from hauntd\basketjs\Asset.

<?php

// ./assets/AppAsset.php

class AppAsset extends \hauntd\basketjs\Asset
{
    public $basePath = '@webroot';
    public $baseUrl = '@web';
    public $css = [
        'css/site.css',
    ];
    public $js = [
        'js/site.js',
        'js/plugins.js',
    ];
    public $depends = [
        'yii\web\YiiAsset',
    ];
}

License

yii2-basketjs-asset is released under the MIT License. See the bundled LICENSE for details.