News Feed
Sections




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

PHPBuilder.com:
Enforcing Coding Standards with PHP_CodeSniffer
October 22, 2010 @ 08:40:59

Developing applications has become simpler and simpler these days and the multitude of IDEs out there can help you keep all of your files organized and linked together so you know everything is in its place. There's one thing that only a handful out there can do, though - enforce coding standards. Thankfully, there's a tool that can help you keep your code following down the right path and PHPBuilder.com has a new tutorial about using it - PHP_CodeSniffer.

Although defined according to formal grammar and syntax, programming languages -- like their spoken counterparts -- often leave their users with a great deal of leeway for creative expression. [...] It can even be singularly counterproductive if you do not maintain stylistic consistency across projects, as you'll need to continuously re-acclimate to differing syntactical variations.

The PHP_CodeSniffer tool runs your code through a validation process and checks its structure against a coding standard (like the PEAR standard) and ensure it's formatted correctly. The tutorial shows you how to use the "phpcs" executable to test PHP, Javascript and CSSS files (using the Squiz standard).

0 comments voice your opinion now!
coding standard phpcodesniffer sniffer pear squiz


blog comments powered by Disqus

Similar Posts

PEAR Blog: What would you do with 5 million lines of code?

Joshua Eichorn\'s Blog: HTML_AJAX 0.3.0 Released and new Website

PHP-Tools Blog: Analyzing aide (advanced intrusion detection environment) output with PHP

Greg Beaver's Blog: No PHP Conference power workshop from me in November

Community News: Latest PEAR Releases for 04.16.2007


Community Events





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


list introduction podcast community refactor configure framework developer install testing unittest opinion code interview series release symfony2 language laravel threedevsandamaybe

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