News Feed
Sections




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

Ibuildings techPortal:
phploc PHP Lines of Code
January 28, 2010 @ 08:59:36

On the Ibuildings techPortal today there's a new article from Lorna Mitchell looking at the phploc tool as a way to analyze your code and pick out a whole selection of statistics.

This has been a feature of PHPUnit for some time but has been released as a separate project in the phpunit pear channel. The nature of PHPUnit means that many of these statistics can be collected while the tests are running, which is why it was added to that tool in the first instance.

Stats gathered include the number of directories, files, interfaces, methods, functions and constants with more details for each (like visibility, actual lines of code contained in them and the cyclomatic complexity). The tool is very simple to use - just call it from the command like and give it a path to your codebase. It does the rest and spits out a text-based report.

0 comments voice your opinion now!
phploc lines code analyze phpunit


blog comments powered by Disqus

Similar Posts

Brian Swan's Blog: Running VisualPHPUnit in Windows Azure

Wojciech Sznapka's Blog: Why Mockery is better than PHPUnit Mock Builder (with Symfony2)

Sebastian Bergmann's Blog: Support for PHPUnit in Parabuild

DZone.com: Refactoring away from spaghetti PHP

Chris Jones: Getting Started with PHP Zend Framework 2 for Oracle DB


Community Events





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


community zendserver release bugfix voicesoftheelephpant laravel symfony api deployment list introduction language series framework tips conference interview developer podcast library

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