I try to ensure that the code I write is of the best quality possible, so I strive to follow accepted sets of best practices.
In perl, I try to follow the guidelines in the popular book "Perl Best Practices" and I use the perlcritic module to enforce the policies recommended in that book. Perlcritic checks my code to ensure that each recommended policy is followed. I have perlcritic set to "brutal" because I'm serious about creating bug-free code.
With javascript, I use JSLint to do the same thing, as well as enabling strict error checking in firefox.
Unfortunately, I haven't found anything like that for PHP! I've never found a best practices list for PHP with more than 20 items on it, and certainly haven't found a syntax checker that would enforce such rules.
( by the way, I know about php's error_reporting setting. i want something in addition to that ).
Is there such a program to enforce strict best practices in php?