Speeding Up Your PHP Web Site
Although this is a Java library, it is easy to leverage it from within PHP. All you need is Java installed (which most servers do) and the
It is strongly recommended that you cache output from YUI Compressor, since minifying in real-time can be slow and resource-intensive.
When using YUI Compressor, you can either specify the content type (either
css), or it will auto-detect based on the input filename.
yuicompressor.jar is present in the same directory as