2017 © Pedro Peláez
 

library pdepend-analyzer

Pdepend Analyze is a command line tool that analyzes the summary xml file generated by PHP Depend like cyclomatic complexity and N-Path complexity

image

geshan/pdepend-analyzer

Pdepend Analyze is a command line tool that analyzes the summary xml file generated by PHP Depend like cyclomatic complexity and N-Path complexity

  • Friday, October 2, 2015
  • by geshan
  • Repository
  • 1 Watchers
  • 3 Stars
  • 276 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

pdepend analyzer

Build Status, (*1)

Pdepend Analyze is a command line tool that analyzes the summary xml file generated by Pdepend. For now it shows the methods that have the highest Cylcomatic Complexity and N-Path Complexity in the Pdepend summary XML file generated for any given code base. There is a pdepend process command line tool that formats the Pdepend summary xml as HTML, its very useful. This command line tool can be used as part of the tests or even as a pre-commit hook to lower down the software complexity., (*2)

Prerequisites

This library needs PHP 5.4+., (*3)

It has been tested using PHP 5.4 to PHP 5.6., (*4)

Installation

You can install the library directly with composer:, (*5)

"geshan/pdepend-analyzer": "0.1.0"

Usage

To you this command line tool, you will need to generate your code metrics using PDepend with command like below:, (*6)

 ᐅ phpdepend --summary-xml=/tmp/summary.xml /path/to/your/src

For more information about Pdepend refer to its docs., (*7)

After you have your summary.xml file with the software metrics of your code base you can run the pdepend-analyzer in in the following ways:, (*8)

Run analyze with default params


ᐅ ./pdepend-analyze --file=tests/Pdepend/Fixtures/summary.xml

Run analyze with custom params


ᐅ ./pdepend-analyze --file=tests/Pdepend/Fixtures/summary.xml --cyclomatic-complexity-limit=2 --npath-complexity-limit=5

Screen shot of usage with custom params

Pdepend Analyzer Screenshot, (*9)

Tests

PHPUnit is used to test the command line tool. You will need composer to get the dependencies. To run tests locally, execute the following commands in project root:, (*10)


ᐅ composer install --prefer-source ᐅ ./vendor/bin/phpunit --configuration phpunit.xml --bootstrap vendor/autoload.php

Feedback

Add an issue, open a PR, drop us an email! We would love to hear from you!, (*11)

The Versions

02/10 2015

dev-master

9999999-dev

Pdepend Analyze is a command line tool that analyzes the summary xml file generated by PHP Depend like cyclomatic complexity and N-Path complexity

  Sources   Download

MIT

The Requires

 

The Development Requires

by Geshan Manandhar

02/10 2015

dev-wercker-docker

dev-wercker-docker

Pdepend Analyze is a command line tool that analyzes the summary xml file generated by PHP Depend like cyclomatic complexity and N-Path complexity

  Sources   Download

MIT

The Requires

 

The Development Requires

by Geshan Manandhar

01/10 2015

dev-wercker

dev-wercker

Pdepend Analyze is a command line tool that analyzes the summary xml file generated by PHP Depend like cyclomatic complexity and N-Path complexity

  Sources   Download

MIT

The Requires

 

The Development Requires

by Geshan Manandhar

27/09 2015

dev-analysis-8PvpKq

dev-analysis-8PvpKq

Pdepend Analyze is a command line tool that analyzes the summary xml file generated by PHP Depend like cyclomatic complexity and N-Path complexity

  Sources   Download

MIT

The Requires

 

The Development Requires

by Geshan Manandhar

20/10 2014

0.1.0

0.1.0.0

Pdepend Analyze is a command line tool that analyzes the summary xml file generated by PHP Depend like cyclomatic complexity and N-Path complexity

  Sources   Download

MIT

The Requires

 

The Development Requires

by Geshan Manandhar