YUI Compressor is a tool for compressing data transmission between a website and the client that reduces time to display a website.
Having that said, I was most pleased and excited to discover that you can install the YUI compressor quickly and instantly through ubuntu.
Regardless, you can just install it on ubuntu with one easy command:
sudo apt-get install yui-compressor
And pow! You can quickly use yui compressor! With this in mind you can integrate this easily with Phing, jenkins, or even just get down and dirty and write your own script to automate the process.