PHP code example of php-comp / asset-manager

1. Go to this page and download the library: Download php-comp/asset-manager 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/ */

    

php-comp / asset-manager example snippets


$router = new \Inhere\Route\Router;
$router->get('/assets/(css|js)/([\w.-]+)\.(css|js)', AssetController::class . '@output');
bash
composer 

"php-comp/asset-manager": "dev-master",