PHP code example of xanweb / c5-ext-asset

1. Go to this page and download the library: Download xanweb/c5-ext-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/ */

    

xanweb / c5-ext-asset example snippets




use Xanweb\ExtAsset\Asset\VendorAssetManager;

VendorAssetManager::registerMultiple([
    'js-cookie' => [
        ['vendor-javascript', 'js/js.cookie.min.js', 'xanweb/c5-js-cookie', ['minify' => false, 'version' => '3.0.0-beta.3']],
    ],
]);

VendorAssetManager::registerGroup('myAsset/group', [
    ['javascript', 'jquery'],
    ['vendor-javascript', 'js-cookie'], // Just as example. js cookie doesn't 


    $g = \Concrete\Core\Http\ResponseAssetGroup::get();
    $g->