1. If you already have a .htaccess file then add the rules that come with phpsprocket into it and change the path to point to phpsprocket.
2. Change the top variables in phpsprocket.php to reflect your settings.
Changes to the original sprockets.
PHP Sprockets currently acts as a transparent proxy as default and caches results. Because of this you do not have to initialize any classes in your app and sprocket stays separate.
For constants you can use either <%= or <?= this is to make the syntax closer to PHP’s but still keep compatibility with original sprocket files.
1. Flag directives, e.g. //= flag “gzip:true” would gzip the JS, possible flags: stripcomments, minify and gzip.