Categories
Posts

Asset Management for PHP

Looking for one more asset management tool to use? Check out assetic:

[sourcecode lang=”php”]
use AsseticAssetAssetCollection;
use AsseticAssetFileAsset;
use AsseticAssetGlobAsset;

$js = new AssetCollection( [
new GlobAsset(‘/path/to/js/*’),
new FileAsset(‘/path/to/another.js’),
] );

echo $js->dump();
[/sourcecode]

Leave a Reply

Your email address will not be published. Required fields are marked *