yii2-basketjs-asset
Basket.js plugin asset for Yii 2.0 applications., (*1)
Installation
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist hauntd/yii2-basketjs-asset "*"
or add, (*4)
"hauntd/yii2-basketjs-asset": "*"
to the require section of your composer.json
file., (*5)
Usage
To use this plugin extend your asset class from hauntd\basketjs\Asset
., (*6)
<?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., (*7)