PHP code example of hauntd / yii2-basketjs-asset

1. Go to this page and download the library: Download hauntd/yii2-basketjs-asset library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

hauntd / yii2-basketjs-asset example snippets




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

php composer.phar