PHPMin is to PHP what JSmin is to javascript; a light weight python utility for minifying pure PHP application. PHPMin is designed to simply strip all comments, extra whitespaces and depending on your choosen scheme, can also perform variables and functions name replacement with shorter names.
You can read up the backdrop of this utility as well as sample usage code on my blog at Kodingama Its very much open to improvement
I built this utility during Christmas 2011. It was a nice way to spend xmas holiday
PHPMin is published under the Apache License v2