LINK: https://github.com/kriswallsmith/assetic
Now I have used the instructions posted here but when I try to run my test script I get:
Fatal error: Class 'Assetic\Asset\AssetCollection' not found in /var/www/newnew/test.php on line 9My directory structure is as followed
www -- test.php -- assets -- -- css -- -- -- styles.cssMy test script is:
<?php use Assetic\Asset\AssetCollection; use Assetic\Asset\FileAsset; use Assetic\Asset\GlobAsset; use Assetic\Filter\LessFilter; use Assetic\Filter\Yui; $css = new AssetCollection(array( new GlobAsset('assets/css/*'), ), array( new Yui\CssCompressorFilter('core/lib/yuicompressor-2.4.7.jar'), )); echo $css->dump(); ?>