PHPackages                             innmind/dependency-graph - 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. innmind/dependency-graph

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

innmind/dependency-graph
========================

Library to visualize project dependencies

3.9.0(2mo ago)62.6k1[1 issues](https://github.com/Innmind/DependencyGraph/issues)1MITPHPPHP ~8.4CI failing

Since Jan 18Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/Innmind/DependencyGraph)[ Packagist](https://packagist.org/packages/innmind/dependency-graph)[ Docs](http://github.com/Innmind/DependencyGraph)[ RSS](/packages/innmind-dependency-graph/feed)WikiDiscussions develop Synced 2mo ago

READMEChangelog (10)Dependencies (19)Versions (32)Used By (1)

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

[](#dependencygraph)

[![Build Status](https://github.com/Innmind/DependencyGraph/workflows/CI/badge.svg?branch=master)](https://github.com/Innmind/DependencyGraph/actions?query=workflow%3ACI)[![codecov](https://camo.githubusercontent.com/54669d1581b707d78937842297e280a6cb70c6f28677a56f9bd390011cdedf96/68747470733a2f2f636f6465636f762e696f2f67682f496e6e6d696e642f446570656e64656e637947726170682f6272616e63682f646576656c6f702f67726170682f62616467652e737667)](https://codecov.io/gh/Innmind/DependencyGraph)[![Type Coverage](https://camo.githubusercontent.com/244537598e04ec3930e6464e94a5a20f35e4a864ad1c706e72273b1332e18fc7/68747470733a2f2f73686570686572642e6465762f6769746875622f496e6e6d696e642f446570656e64656e637947726170682f636f7665726167652e737667)](https://shepherd.dev/github/Innmind/DependencyGraph)

Tool to help visualize the various dependencies between packages.

It has been created to help maintain the many packages inside this organisation.

Note

This package needs [graphviz (`dot` command line tool)](https://graphviz.org) to be installed on your machine

Installation
------------

[](#installation)

```
composer global require innmind/dependency-graph
```

Usage
-----

[](#usage)

`dependency-graph from-lock`

This command will look for a `composer.lock` in the working directory and generate a file named `dependencies.svg`.

`dependency-graph of {vendor}/{package}`

This will call `packagist.org` to retrieve the last published version of the given package and generate a file named `{vendor}_{package}_dependencies.svg`.

`dependency-graph depends-on {vendor}/{package} {vendor1} {vendorX}`

This will look for all packages inside the vendors `vendor1` and `vendorX` that depend (directly or indirectly) on `{vendor}/{package}` and will generate a file named `{vendor}_{package}_dependents.svg`.

**Note**: every package node and vendor cluster contains a link to their dedicated packagist page.

Examples
--------

[](#examples)

`dependency-graph from-lock` of this repository [![](dependencies.svg)](dependencies.svg)

`dependency-graph of innmind/cli` [![](innmind_cli_dependencies.svg)](innmind_cli_dependencies.svg)

`dependency-graph depends-on innmind/cli innmind baptouuuu` [![](innmind_cli_dependents.svg)](innmind_cli_dependents.svg)

`dependency-graph vendor innmind` [![](innmind.svg)](innmind.svg)

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance81

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity89

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 99.5% 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 ~99 days

Recently: every ~145 days

Total

27

Last Release

79d ago

Major Versions

1.4.0 → 2.0.02020-03-14

2.1.0 → 3.0.02022-07-17

PHP version history (6 changes)1.0.0PHP ~7.2

2.0.0PHP ~7.4

2.1.0PHP ~7.4|~8.0

3.0.0PHP ~8.1

3.4.0PHP ~8.2

3.9.0PHP ~8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/851425?v=4)[Baptiste Langlade](/maintainers/Baptouuuu)[@Baptouuuu](https://github.com/Baptouuuu)

---

Top Contributors

[![Baptouuuu](https://avatars.githubusercontent.com/u/851425?v=4)](https://github.com/Baptouuuu "Baptouuuu (214 commits)")[![jdecool](https://avatars.githubusercontent.com/u/433926?v=4)](https://github.com/jdecool "jdecool (1 commits)")

---

Tags

composerdependencygraphgraphvizcomposerdependencygraphvizgraph

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/innmind-dependency-graph/health.svg)

```
[![Health](https://phpackages.com/badges/innmind-dependency-graph/health.svg)](https://phpackages.com/packages/innmind-dependency-graph)
```

###  Alternatives

[composer/composer

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

29.4k187.2M2.6k](/packages/composer-composer)[bamarni/composer-bin-plugin

No conflicts for your bin dependencies

52722.0M859](/packages/bamarni-composer-bin-plugin)[sllh/composer-versions-check

Checks if packages are up to date to last major versions after update

2352.4M16](/packages/sllh-composer-versions-check)[typisttech/imposter-plugin

Composer plugin that wraps all composer vendor packages inside your own namespace. Intended for WordPress plugins.

158251.0k2](/packages/typisttech-imposter-plugin)[typisttech/imposter

Wrapping all composer vendor packages inside your own namespace. Intended for WordPress plugins.

111286.6k1](/packages/typisttech-imposter)[jbzoo/composer-graph

Render composer.json + composer.lock dependencies graph

66741.6k2](/packages/jbzoo-composer-graph)

PHPackages © 2026

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