I have created a standard for Symfony framework to use with PHP code sniffer.
-Download and install PHP code sniffer
http://pear.php.net/package/PHP_CodeSniffer
-Check out the code from subversion
http://subversion.assembla.com/svn/phpsymfony/Symfony%20Code%20sniffer%20standards
-Copy the Symfony directory to the code sniffer standard directory
-Put --standard=Symfony for validating the file using Symfony coding standards
$ phpcs --standard=Symfony /path/to/code/myfile.php