PHPackages                             geshan/pdepend-analyzer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. geshan/pdepend-analyzer

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

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

0.1.0(11y ago)3277[1 issues](https://github.com/geshan/pdepend-analyzer/issues)MITPHPPHP &gt;=5.4.0

Since Oct 20Pushed 10y ago1 watchersCompare

[ Source](https://github.com/geshan/pdepend-analyzer)[ Packagist](https://packagist.org/packages/geshan/pdepend-analyzer)[ RSS](/packages/geshan-pdepend-analyzer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (9)Versions (5)Used By (0)

pdepend analyzer
================

[](#pdepend-analyzer)

[![Build Status](https://camo.githubusercontent.com/44a38e0d19eb54247a9139967d6ef77942f5f313677ad8d6a118e4c4b7ce13a4/68747470733a2f2f6170692e7472617669732d63692e6f72672f67657368616e2f70646570656e642d616e616c797a65722e737667)](https://travis-ci.org/geshan/pdepend-analyzer)

Pdepend Analyze is a command line tool that analyzes the summary xml file generated by [Pdepend](http://pdepend.org). For now it shows the methods that have the highest [Cylcomatic Complexity and N-Path Complexity](http://codingswag.ghost.io/cyclomatic-and-npath-complexity-explained/) in the Pdepend summary XML file generated for any given code base. There is a [pdepend process](https://github.com/sebastianbergmann/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.

Prerequisites
-------------

[](#prerequisites)

This library needs PHP 5.4+.

It has been tested using PHP 5.4 to PHP 5.6.

Installation
------------

[](#installation)

You can install the library directly with composer:

```
"geshan/pdepend-analyzer": "0.1.0"

```

Usage
-----

[](#usage)

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

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

For more information about Pdepend refer to its [docs](http://pdepend.org/documentation/getting-started.html).

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:

### Run analyze with default params

[](#run-analyze-with-default-params)

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

### Run analyze with custom params

[](#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

[](#screen-shot-of-usage-with-custom-params)

[![Pdepend Analyzer Screenshot](docs/screenshot.png "Pdepend Analyzer Screenshot")](docs/screenshot.png)

Tests
-----

[](#tests)

[PHPUnit](https://phpunit.de/) is used to test the command line tool. You will need [composer](https://getcomposer.org) to get the dependencies. To run tests locally, execute the following commands in project root:

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

Feedback
--------

[](#feedback)

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

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4228d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/170554?v=4)[Geshan Manandhar](/maintainers/geshan)[@geshan](https://github.com/geshan)

---

Top Contributors

[![geshan](https://avatars.githubusercontent.com/u/170554?v=4)](https://github.com/geshan "geshan (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/geshan-pdepend-analyzer/health.svg)

```
[![Health](https://phpackages.com/badges/geshan-pdepend-analyzer/health.svg)](https://phpackages.com/packages/geshan-pdepend-analyzer)
```

###  Alternatives

[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M568](/packages/symfony-maker-bundle)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
