Skip to content

hauntd/yii2-basketjs-asset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yii2-basketjs-asset

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.

About

Basket.js plugin asset for Yii 2.0 applications

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages