PHP_CodeSniffer provides functionality to verify that code conforms to certain standards, such as PEAR, or user-defined.