Manage and build simple your assets
composer requrie pschur/assets
I recomend you to look also at my example directory.
At first import the autoloader from composer:
<?php
use Pschur\Assets\Asset;
require __DIR__.'/vendor/autoload.php';
Then configure some importaint things:
// REQUIRED
Asset::setAssetCache(__DIR__.'/cache'); // Define a cache where the package can store some data
Asset::setAssetUrl('/assets.php'); // Define the url, where the Asset Manager can get its data.
// OPTIONAL
Asset::setAutoOptimize(true); // If you want to create automatic optimized data set this to true. I don't recommend this while developing!
The Asset Manager organizes all styles and scripts by its self. If you haven't optimized your data, the Asset Manager will build the styles and script on every load new. When you optimized the whole thing. It will return static files.