News Feed
Sections




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

Sameer Borate's Blog:
Checking coding standards with PHP_Codesniffer
March 30, 2009 @ 13:49:06

On his code-diesel blog Sameer has posted a tutorial that introduces you to the PHP_CodeSniffer library and some simple examples of it in action.

A coding standard basically tells developers in what style they must write their code. If programmers work in a team than a coding standard ensures that each will be able to read the others code without any effort. [...] A tool which scans your source code and checks it against a standard would be quite a help. PHP_CodeSniffer is one such tool.

The PHP_CodeSniffer package allows you to check code (to "sniff" it) and ensure that it matches against a certain format. The tool doesn't do any testing outside of that, though - no unit testing or functionality checking.

Sameer includes a guide to getting the tool installed and using it to get the source files in a certain directory. He also points to a tutorial for developing your own coding standards.

0 comments voice your opinion now!
phpcodesniffer package tutorial install coding standard


blog comments powered by Disqus

Similar Posts

Josh Holmes' Blog: Easy Setup for PHP On Azure Development

HowTo Forge: How To Harden PHP5 With Suhosin On Fedora 7

Rob Allen's Blog: Spanish versions too!

Godaddyhostingreview Blog: How to move Magento from Production to Live Server

Dave Dash's Blog: Finding things using Zend Search Lucene in symfony


Community Events





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


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

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