Minify is a PHP application that combines CSS and JavaScript files, removes comments and white space and serves them with optimal and gzipped header encoding.
It has already been integrated in to other such projects such as WordPress, Yii, and the Zend Framework.