PHPackages                             mnapoli/php-di - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. mnapoli/php-di

Abandoned → [php-di/php-di](/?search=php-di%2Fphp-di)Library[PSR &amp; Standards](/categories/psr-standards)

mnapoli/php-di
==============

The dependency injection container for humans

7.1.1(9mo ago)2.8k213.8k↓36.1%325[26 issues](https://github.com/PHP-DI/PHP-DI/issues)[10 PRs](https://github.com/PHP-DI/PHP-DI/pulls)11MITPHPPHP &gt;=8.0CI passing

Since Sep 29Pushed 4mo ago78 watchersCompare

[ Source](https://github.com/PHP-DI/PHP-DI)[ Packagist](https://packagist.org/packages/mnapoli/php-di)[ Docs](https://php-di.org/)[ GitHub Sponsors](https://github.com/mnapoli)[ Fund](https://tidelift.com/funding/github/packagist/php-di/php-di)[ RSS](/packages/mnapoli-php-di/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (139)Used By (11)

   layout     home

  [![](doc/img.png)](https://php-di.org/)

[![Downloads per months](https://camo.githubusercontent.com/0046f65a08bccbf463d02bdcba967612496565c6b7254c31606e86e1a18a605b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f5048502d44492f5048502d44492e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/PHP-DI/PHP-DI)[![Total downloads](https://camo.githubusercontent.com/4e2889d0e76a0d3cff46a980e1137256a0235871f3f865c60350ee59d1d8c013/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f5048502d44492f5048502d44492e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/PHP-DI/PHP-DI)

[![Average time to resolve an issue](https://camo.githubusercontent.com/be05a2e5a130cf6598331735b5c241261abeb2f0d911393f70364c0e4fc4e2c5/687474703a2f2f697369746d61696e7461696e65642e636f6d2f62616467652f7265736f6c7574696f6e2f5048502d44492f5048502d44492e737667)](http://isitmaintained.com/project/PHP-DI/PHP-DI "Average time to resolve an issue")[![Percentage of issues still open](https://camo.githubusercontent.com/5134f8f86072c40fbf27629f882903745014ef8c0c2e101d4365afb8388b92af/687474703a2f2f697369746d61696e7461696e65642e636f6d2f62616467652f6f70656e2f5048502d44492f5048502d44492e737667)](http://isitmaintained.com/project/PHP-DI/PHP-DI "Percentage of issues still open")

PHP-DI is a dependency injection container meant to be practical, powerful, and framework-agnostic.

Read more on the website: **[php-di.org](https://php-di.org)**

For Enterprise
--------------

[](#for-enterprise)

*Available as part of the Tidelift Subscription*

The maintainers of php-di/php-di and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/packagist-php-di-php-di?utm_source=packagist-php-di-php-di&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)

###  Health Score

67

—

FairBetter than 100% of packages

Maintenance67

Regular maintenance activity

Popularity60

Solid adoption and visibility

Community45

Growing community involvement

Maturity86

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 89% 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 ~37 days

Total

126

Last Release

275d ago

Major Versions

5.4.6 → 6.0.0-beta12017-12-03

5.4.x-dev → 6.0.02018-02-20

6.2.4 → 7.0.0-beta12020-10-05

6.3.0 → 7.0.0-beta32021-03-06

6.4.0 → 7.0.0-rc12023-01-08

PHP version history (8 changes)2.0.0PHP &gt;=5.3.0

4.0.0-beta1PHP &gt;=5.3.3

5.0.0-RC1PHP &gt;=5.4.0

5.3.0-beta1PHP &gt;=5.5.0

6.0.x-devPHP &gt;=7.0.0

6.1.0PHP &gt;=7.2.0

7.0.0-beta1PHP &gt;=7.4.0

7.0.0-rc1PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/329a6111724074f5388e95dd41a03ccf3c43f4bfe1ecf27c94c9efc6f7823228?d=identicon)[mnapoli](/maintainers/mnapoli)

---

Top Contributors

[![mnapoli](https://avatars.githubusercontent.com/u/720328?v=4)](https://github.com/mnapoli "mnapoli (1641 commits)")[![jdreesen](https://avatars.githubusercontent.com/u/424602?v=4)](https://github.com/jdreesen "jdreesen (36 commits)")[![holtkamp](https://avatars.githubusercontent.com/u/776405?v=4)](https://github.com/holtkamp "holtkamp (27 commits)")[![juliangut](https://avatars.githubusercontent.com/u/1104131?v=4)](https://github.com/juliangut "juliangut (23 commits)")[![williamdes](https://avatars.githubusercontent.com/u/7784660?v=4)](https://github.com/williamdes "williamdes (9 commits)")[![domu1de](https://avatars.githubusercontent.com/u/1790055?v=4)](https://github.com/domu1de "domu1de (8 commits)")[![takaram](https://avatars.githubusercontent.com/u/18339861?v=4)](https://github.com/takaram "takaram (8 commits)")[![angelxmoreno](https://avatars.githubusercontent.com/u/363479?v=4)](https://github.com/angelxmoreno "angelxmoreno (6 commits)")[![omarkdev](https://avatars.githubusercontent.com/u/14936241?v=4)](https://github.com/omarkdev "omarkdev (6 commits)")[![partikus](https://avatars.githubusercontent.com/u/1732227?v=4)](https://github.com/partikus "partikus (5 commits)")[![muglug](https://avatars.githubusercontent.com/u/2292638?v=4)](https://github.com/muglug "muglug (5 commits)")[![diesse](https://avatars.githubusercontent.com/u/5765794?v=4)](https://github.com/diesse "diesse (5 commits)")[![BusterNeece](https://avatars.githubusercontent.com/u/6744885?v=4)](https://github.com/BusterNeece "BusterNeece (5 commits)")[![elie29](https://avatars.githubusercontent.com/u/11255270?v=4)](https://github.com/elie29 "elie29 (5 commits)")[![quimcalpe](https://avatars.githubusercontent.com/u/1057151?v=4)](https://github.com/quimcalpe "quimcalpe (5 commits)")[![kocsismate](https://avatars.githubusercontent.com/u/6057627?v=4)](https://github.com/kocsismate "kocsismate (4 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (4 commits)")[![drealecs](https://avatars.githubusercontent.com/u/209984?v=4)](https://github.com/drealecs "drealecs (4 commits)")[![jmalloc](https://avatars.githubusercontent.com/u/761536?v=4)](https://github.com/jmalloc "jmalloc (4 commits)")[![zonuexe](https://avatars.githubusercontent.com/u/822086?v=4)](https://github.com/zonuexe "zonuexe (4 commits)")

---

Tags

container-interopdependency-injectioniocphppsr-11containercontainer-interopPSR-11dependency-injectiondiiocpsr11

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mnapoli-php-di/health.svg)

```
[![Health](https://phpackages.com/badges/mnapoli-php-di/health.svg)](https://phpackages.com/packages/mnapoli-php-di)
```

###  Alternatives

[php-di/php-di

The dependency injection container for humans

2.8k48.9M994](/packages/php-di-php-di)[slince/di

A flexible dependency injection container

20260.4k6](/packages/slince-di)

PHPackages © 2026

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