PHP code example of msgframework / assetmanager
1. Go to this page and download the library: Download msgframework/assetmanager 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/ */
msgframework / assetmanager example snippets
php
use RocketCMS\Lib\AssetManager\WebAssetRegistry as WebAssetRegistry;
$registry = new WebAssetRegistry;
// Add registry files
$registry
->addRegistryFile('media/vendor/media.asset.json')
->addRegistryFile('media/system/media.asset.json');