PHPackages                             dettbarn/dependencygraph - 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. dettbarn/dependencygraph

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

dettbarn/dependencygraph
========================

Analyse and visualise the PHP class structure obtained from PhpMetrics

0.2.0(5mo ago)010[16 issues](https://github.com/dettbarn/DependencyGraph/issues)MITPHP

Since Jan 3Pushed 5mo agoCompare

[ Source](https://github.com/dettbarn/DependencyGraph)[ Packagist](https://packagist.org/packages/dettbarn/dependencygraph)[ RSS](/packages/dettbarn-dependencygraph/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (2)Versions (4)Used By (0)

DependencyGraph
===============

[](#dependencygraph)

This tool can be regarded as an extension to PhpMetrics, originally born in the [FLYERALARM](https://flyeralarm.com) ecosystem. The main feature is a visualisation of the class structure in a tree-like fashion.

Setup
-----

[](#setup)

```
composer config minimum-stability dev
composer config prefer-stable true
composer require dettbarn/dependencygraph
```

How to run
----------

[](#how-to-run)

In `vendor/bin/dependencygraph`, configure the graph depth (`MAX_DEPTH`) and name patterns.

Then run `php vendor/bin/dependencygraph path/to/classes.js 'Name\Of\Root\Class' path/to/package_relations.html 'Root\Package'` with your suitable parameters. The graphs should be saved in an output folder, see example below.

[![example.png](example.png)](example.png)

Customize output
----------------

[](#customize-output)

You can customize more colors in the defaultVertex method.

For more customizations, check out the Graphp library.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance72

Regular maintenance activity

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 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

Every ~20 days

Total

2

Last Release

160d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/23315143?v=4)[Michael Dettbarn](/maintainers/dettbarn)[@dettbarn](https://github.com/dettbarn)

---

Top Contributors

[![dettbarn](https://avatars.githubusercontent.com/u/23315143?v=4)](https://github.com/dettbarn "dettbarn (7 commits)")

### Embed Badge

![Health badge](/badges/dettbarn-dependencygraph/health.svg)

```
[![Health](https://phpackages.com/badges/dettbarn-dependencygraph/health.svg)](https://phpackages.com/packages/dettbarn-dependencygraph)
```

###  Alternatives

[clue/graph-composer

Dependency graph visualization for composer.json

94299.1k12](/packages/clue-graph-composer)

PHPackages © 2026

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