Just stumbled over another PHP related tool today, which I think is worth the link:
phptags is a simple commandline tool to tidy up open and close tags in PHP scripts. It can rewrite close tags, and strip leading or trailing whitespace (or UTF-8 BOM).
It’s also listed on freecode.