dettbarn/dependencygraph

Analyse and visualise the PHP class structure obtained from PhpMetrics

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/dettbarn/dependencygraph

0.1.0 2026-01-03 19:44 UTC

This package is auto-updated.

Last update: 2026-01-17 19:55:44 UTC


README

Setup

Just run composer install.

How to run

In script/readPhpMetrics.php, configure the graph depth (MAX_DEPTH) and name patterns.

Then run php script/readPhpMetrics.php ../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

Customize output

You can customize more colors in the defaultVertex method.

For more customizations, check out the Graphp library.