PHPackages                             dantleech/depgraph - 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. dantleech/depgraph

ActiveLibrary

dantleech/depgraph
==================

Comprehensable Composer PHP dependency diagrams for your small business or enterprise.

1.0.2(1mo ago)220[4 issues](https://github.com/dantleech/depgraph/issues)MITPHPPHP ^8.4CI passing

Since Jul 12Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/dantleech/depgraph)[ Packagist](https://packagist.org/packages/dantleech/depgraph)[ GitHub Sponsors](https://github.com/dantleech)[ RSS](/packages/dantleech-depgraph/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (7)Versions (4)Used By (0)

Composer PHP Dependency Graph Generator
=======================================

[](#composer-php-dependency-graph-generator)

[![CI](https://github.com/dantleech/depgraph/actions/workflows/ci.yml/badge.svg)](https://github.com/dantleech/depgraph/actions/workflows/ci.yml)

Generates rich dependency diagrams for your composer-based PHP project.

[![Image](https://private-user-images.githubusercontent.com/530801/620534985-fc1a43dd-2153-46c9-8d88-64b2f70dbe93.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODc1NDk4MTYsIm5iZiI6MTc4NzU0OTUxNiwicGF0aCI6Ii81MzA4MDEvNjIwNTM0OTg1LWZjMWE0M2RkLTIxNTMtNDZjOS04ZDg4LTY0YjJmNzBkYmU5My5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwODI0JTJGdXMtZWFzdC0xJTJGczMlMk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4NyQne4X7wMpjUKZHWkemEe8nuYobdMvY)Above you can see:

- Dotted lines indicate a dev dependency.
- Bold lines indicate a direct dependency.
- Package version constraints listed on the lines.
- Licence information
- Red nodes indicate a package with security issues.
- Orange nodes are abandonned.
- Yellow nodes are outdated.
    - `@1.0.0` indicates the installed version.
    - `=1.0.0` indicates the latest version.
- The distance from the root package is shown as `+[0-n]`

[![Image](https://private-user-images.githubusercontent.com/530801/620535137-649f1696-5415-4bb2-998d-976513a6e61f.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODc1NDk4MTYsIm5iZiI6MTc4NzU0OTUxNiwicGF0aCI6Ii81MzA4MDEvNjIwNTM1MTM3LTY0OWYxNjk2LTU0MTUtNGJiMi05OThkLTk3NjUxM2E2ZTYxZi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwODI0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDgyNFQwNTMxNTZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04MGY5MDA1Njg2YWQwNGZhMjcxN2IyOWUzYzcwMmE1YzAzZjI2ZjVkMjQzNDljNzk5ZGMxNGM1ZmFjZjVjYmU2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.NwNV6nXxCXulybTy0_lZSKnzZL_vMfq0okwtKLU6-5o)](https://private-user-images.githubusercontent.com/530801/620535137-649f1696-5415-4bb2-998d-976513a6e61f.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODc1NDk4MTYsIm5iZiI6MTc4NzU0OTUxNiwicGF0aCI6Ii81MzA4MDEvNjIwNTM1MTM3LTY0OWYxNjk2LTU0MTUtNGJiMi05OThkLTk3NjUxM2E2ZTYxZi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwODI0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDgyNFQwNTMxNTZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04MGY5MDA1Njg2YWQwNGZhMjcxN2IyOWUzYzcwMmE1YzAzZjI2ZjVkMjQzNDljNzk5ZGMxNGM1ZmFjZjVjYmU2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.NwNV6nXxCXulybTy0_lZSKnzZL_vMfq0okwtKLU6-5o)Installation
------------

[](#installation)

You could install it as follows:

```
git clone git@github.com:dantleech/depgraph
cd depgraph
composer install
ln -s $(pwd)/bin/depgraph $HOME/.local/bin/depgraph
```

You could also include it as a project dependency if you want:

```
composer require --dev dantleech/depgraph
```

Features
--------

[](#features)

- Limit to production or development packages (`--no-dev` `--no-prod`).
- Limit depth of graph (`--max-depth=2`)
- Highlight packages with CVEs (`--audit`)
- Highlight outdated packages (`--outdated`)

Usage
-----

[](#usage)

Warning

Depgraph generates [Graphviz](https://graphviz.org/) Dot files. You will need to install the Graphviz on your operating system to access the `dot` binary.

The `depgraph` script will output a Graphviz Dot file to `stdout`. You can pipe it directly to the `dot` binary to generate a diagram:

```
depgraph | dot -Tsvg -ograph.svg

```

Specify a composer file:

```
depgraph path/to/my/composer.json | dot -Tsvg -ograph.svg

```

Do the slower things and output to a PNG:

```
depgraph path/to/my/composer.json --audit --outdated | dot -Tpng -ograph.png

```

---

🩸 *made with blood and tears by **you** 🫵*

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance87

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Every ~0 days

Total

3

Last Release

49d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/24ec7d5d6b7ea54007be5d7b4f43800381cc1e22929f7d2276fba30e497fdfa6?d=identicon)[dantleech](/maintainers/dantleech)

---

Top Contributors

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

---

Tags

composerdependencydiagramphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dantleech-depgraph/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

35.4k569.8M21.9k](/packages/laravel-framework)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k39.6k](/packages/matomo-matomo)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

605.9M708](/packages/shopware-core)[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.6k203.2M3.5k](/packages/composer-composer)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21668.5M2.0k](/packages/drupal-core)

PHPackages © 2026

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