News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Christopher Martinez:
Static code analysis tools for PHP
May 08, 2013 @ 12:38:22

Christopher Martinez has a recent post to his site that covers some of the static analysis tools available for PHP including the PHP Mess Detector, PHP CodeSniffer and the PHP Analyzer.

I believe in writing code that is easy to understand, easy to test, and easy to refactor. Yes, I realize that the statement above is pretty general and open to interpretation. Not everyone needs external tools to ensure quality in their code...but, I work on things from time to time that have absolutely no tests. [...] For whatever reason, this happens a lot more frequently in the PHP world. I'm guilty of not writing tests and checking how I write code, sometimes, too. Things are bright, though, for the PHP community - for quite some time now, we've had fantastic tools that assist us in writing better code.

He covers each of the tools, talks some about what they're good for and gives examples of their use, including output. He also talks some about the Pfff set of tools created by Facebook. He also talks some about how these tools fit into his daily work as a part of his pre-commit hooks in git.

0 comments voice your opinion now!
static code analysis tools description example

Link: http://chrsm.org/2013/05/05/code-analysis-tools-for-php

blog comments powered by Disqus

Similar Posts

/Dev/Hell Podcast: Episode 31: Feline Tooth Extraction

Alexander Netkachev's Blog: 404 error with Zend Framework Front Controller

Rob Allen: Z-Ray for Zend Server 7

Sebastian Bergmann's Blog: Data Providers in PHPUnit 3.2

Andi Gutmans' Blog: Inside Zend Server: Linux Take 2 - Examples


Community Events





Don't see your event here?
Let us know!


voicesoftheelephpant series version composer introduction update opinion library framework security language mvc package release laravel podcast community interview tool symfony

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework