PHP Classes

How to Use PHP Dependency Graph Generator to View Class Dependecies Using the Tool PHP Dep Dashboard: Visualize PHP class dependencies in a Web page

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2026-03-29 (Less than 1 hour ago) RSS 2.0 feedNot yet rated by the usersTotal: Not yet counted Not yet ranked
Version License PHP version Categories
php-dep-dashboard 1.0The PHP License5PHP 5, Tools
Description 

Author

This package can visualize PHP class dependencies on a web page.

It provides a Web application written in JavaScript that processes the output of the PHP-Dep tool to display the relations between classes in a graphical way.

This application can display the classes that depend on each other on a chart, letting the users scroll and zoom the chart to see the relations in more detail.

The package provides a PHP script to analyse package code using the PHP Dep tool.

A web dashboard to visualize PHP class dependencies, coupling metrics, and instability scores.

Picture of DeGraciaMathieu
  Performance   Level  
Name: DeGraciaMathieu <contact>
Classes: 30 packages by
Country: France France
Age: ???
All time rank: 287479 in France France
Week rank: 22 Up1 in France France Up
Innovation award
Innovation award
Nominee: 23x

Winner: 2x

Instructions

Please read this document setup the PHP dependency visualizer class.

Documentation

PHP Dep Insights

https://github.com/user-attachments/assets/2992bec4-275f-403c-8e3b-74b1843c41fb

A browser-based, interactive dependency graph explorer for PHP projects.

Installation

git clone https://github.com/DeGraciaMathieu/php-dep-dashboard
cd php-dep-dashboard
composer install

Usage

Run the analyse command with the path to your PHP project:

bin/analyse ../my-project/src/

This will: 1. Run php-dep on the given path 2. Generate a <folder-name>.json file in the dashboard directory

Add --open to automatically open the dashboard in your browser after analysis:

bin/analyse ../my-project/src/ --open

What you get

Once the dashboard is open:

  • Navigate namespaces ? click namespace nodes to drill down, use the breadcrumb to go back up
  • Switch view modes ? toggle between folder view (one node per namespace) and class view (all individual classes, grouped by namespace)
  • Focus a node ? click any class to highlight its direct dependencies and dependants; adjust depth (1 or 2 hops) in the detail panel
  • Filter ? left sidebar lets you filter by class type (class/interface/trait/enum), edge confidence, namespace, and whether to show external classes
  • Search ? top bar search finds any class by FQCN and navigates to it in the graph
  • Cycles ? circular dependencies are highlighted in red; warnings are listed in the top-right badge
  • Export ? export the current graph view as a PNG

Manual usage

You can also generate data.json manually and drop it into the dashboard:

vendor/bin/php-dep analyse src/ --format=json > data.json

Then open index.html in your browser (works via file://, no server needed).


  Files folder image Files (24)  
File Role Description
Files folder image.claude (1 file)
Files folder imageapp (2 files, 1 directory)
Files folder imagebin (1 file)
Files folder imagescripts (1 file)
Files folder imagevendor (4 files)
Accessible without login Plain text file CLAUDE.md Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login HTML file index.html Doc. Documentation
Accessible without login Plain text file package.json Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file style.css Data Auxiliary data

  Files folder image Files (24)  /  .claude  
File Role Description
  Accessible without login Plain text file settings.local.json Data Auxiliary data

  Files folder image Files (24)  /  app  
File Role Description
Files folder imagemodules (9 files)
  Accessible without login Plain text file app.bundle.js Data Auxiliary data
  Accessible without login Plain text file app.js Data Auxiliary data

  Files folder image Files (24)  /  app  /  modules  
File Role Description
  Accessible without login Plain text file constants.js Data Auxiliary data
  Accessible without login Plain text file data-loader.js Data Auxiliary data
  Accessible without login Plain text file detail-panel.js Data Auxiliary data
  Accessible without login Plain text file filter-manager.js Data Auxiliary data
  Accessible without login Plain text file graph-renderer.js Data Auxiliary data
  Accessible without login Plain text file namespace-browser.js Data Auxiliary data
  Accessible without login Plain text file search.js Data Auxiliary data
  Accessible without login Plain text file state.js Data Auxiliary data
  Accessible without login Plain text file warnings-panel.js Data Auxiliary data

  Files folder image Files (24)  /  bin  
File Role Description
  Accessible without login Plain text file analyse Data Auxiliary data

  Files folder image Files (24)  /  scripts  
File Role Description
  Accessible without login Plain text file bundle.js Data Auxiliary data

  Files folder image Files (24)  /  vendor  
File Role Description
  Accessible without login Plain text file cose-base.min.js Data Auxiliary data
  Accessible without login Plain text file cytoscape-fcose.min.js Data Auxiliary data
  Accessible without login Plain text file cytoscape.min.js Data Auxiliary data
  Accessible without login Plain text file layout-base.min.js Data Auxiliary data

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads  
 100%
Total:0
This week:0