furybee/php-deps
Static analysis tool for visualizing PHP class dependencies and call graphs. Analyze your codebase in seconds, explore thousands of classes interactively.
▸ Quick Start
Already have nikic/php-parser in your project (via PHPStan/Larastan)? Skip composer install — it'll use your existing vendor/.
▸ Features
Classes, methods, calls, instantiations, DI resolution — everything extracted.
Resolves constructor injection, method injection, property types, app() calls.
Sigma.js v2 + Graphology — handles 10k+ nodes smoothly with ForceAtlas2 layout.
Auto-categorizes: Controller, Service, Model, Job, Action, and more.
Find classes instantly, filter by layer or edge type.
Understands service injection, app() helper, Form Requests, and more.
Single HTML file, loads via CDN, works offline with file picker. No build step required.
▸ CLI Options
| Option | Default | Description |
|---|---|---|
| --dir | . | Directories to scan (repeatable) |
| --exclude | vendor,node_modules,… | Comma-separated dirs to exclude |
| --output | output/graph.json | Output file path |