PHPackages                             liuxingwei/lxw-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. liuxingwei/lxw-php-di

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

liuxingwei/lxw-php-di
=====================

The dependency injection container for humans, fork from php-di/php-di

6.0.11(6y ago)0101MITPHPPHP &gt;=7.0.0

Since Sep 29Pushed 6y agoCompare

[ Source](https://github.com/Liuxingwei/PHP-DI)[ Packagist](https://packagist.org/packages/liuxingwei/lxw-php-di)[ RSS](/packages/liuxingwei-lxw-php-di/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (11)Versions (108)Used By (1)

   layout home  [![](doc/img.png)](http://php-di.org/)

[![Build Status](https://camo.githubusercontent.com/ffed8589519d0f29509fd6afcd1323d893829d263c579c493c516bf570d25c96/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f5048502d44492f5048502d44492f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/PHP-DI/PHP-DI)[![Coverage Status](https://camo.githubusercontent.com/204fedabed5f77e28e4553ed6f1ef9be3dc7f188ccd3c91966fb7d00755d1a6d/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f5048502d44492f5048502d44492f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/r/PHP-DI/PHP-DI?branch=master)[![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)

[![PrettyCI Status](https://camo.githubusercontent.com/ba8f22641cd4092c763498b0deea8384009f6bd7c979d399c18c0e6201bc0119/68747470733a2f2f686334726370726265312e657865637574652d6170692e65752d776573742d312e616d617a6f6e6177732e636f6d2f6465763f6e616d653d7068702d64692f7068702d6469)](https://prettyci.com/)

[![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](http://php-di.org)**

Get community support in the Gitter chat room: [![Gitter chat](https://camo.githubusercontent.com/c7cc2742cab73e82ec7e40a96e2662d1cc112d35e50011a7d269c907e2cdb3aa/68747470733a2f2f6261646765732e6769747465722e696d2f5048502d44492f5048502d44492e706e67)](https://gitter.im/PHP-DI/PHP-DI)

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

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 90% 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 ~27 days

Recently: every ~3 days

Total

97

Last Release

2382d ago

Major Versions

4.4.9 → 5.0.22015-07-26

5.4.3 → 6.0.x-dev2017-04-15

5.4.6 → 6.0.0-beta12017-12-03

5.4.x-dev → 6.0.02018-02-20

0.0.11 → 6.0.112019-11-03

PHP version history (5 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.0-alpha1PHP &gt;=7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5f55d44033c233389f850d7bbbc9d8286a91a49d80c542abeafc81b96d799c10?d=identicon)[Liuxingwei](/maintainers/Liuxingwei)

---

Top Contributors

[![mnapoli](https://avatars.githubusercontent.com/u/720328?v=4)](https://github.com/mnapoli "mnapoli (1454 commits)")[![holtkamp](https://avatars.githubusercontent.com/u/776405?v=4)](https://github.com/holtkamp "holtkamp (27 commits)")[![jdreesen](https://avatars.githubusercontent.com/u/424602?v=4)](https://github.com/jdreesen "jdreesen (27 commits)")[![juliangut](https://avatars.githubusercontent.com/u/1104131?v=4)](https://github.com/juliangut "juliangut (22 commits)")[![domu1de](https://avatars.githubusercontent.com/u/1790055?v=4)](https://github.com/domu1de "domu1de (8 commits)")[![omarkdev](https://avatars.githubusercontent.com/u/14936241?v=4)](https://github.com/omarkdev "omarkdev (6 commits)")[![diesse](https://avatars.githubusercontent.com/u/5765794?v=4)](https://github.com/diesse "diesse (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)")[![muglug](https://avatars.githubusercontent.com/u/2292638?v=4)](https://github.com/muglug "muglug (5 commits)")[![jmalloc](https://avatars.githubusercontent.com/u/761536?v=4)](https://github.com/jmalloc "jmalloc (4 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (4 commits)")[![thispagecannotbefound](https://avatars.githubusercontent.com/u/5628997?v=4)](https://github.com/thispagecannotbefound "thispagecannotbefound (3 commits)")[![keosion](https://avatars.githubusercontent.com/u/9535169?v=4)](https://github.com/keosion "keosion (3 commits)")[![Rastusik](https://avatars.githubusercontent.com/u/1735097?v=4)](https://github.com/Rastusik "Rastusik (3 commits)")[![Liuxingwei](https://avatars.githubusercontent.com/u/4540691?v=4)](https://github.com/Liuxingwei "Liuxingwei (3 commits)")[![odahcam](https://avatars.githubusercontent.com/u/3942006?v=4)](https://github.com/odahcam "odahcam (3 commits)")[![predakanga](https://avatars.githubusercontent.com/u/830645?v=4)](https://github.com/predakanga "predakanga (3 commits)")[![drealecs](https://avatars.githubusercontent.com/u/209984?v=4)](https://github.com/drealecs "drealecs (3 commits)")[![jasonrm](https://avatars.githubusercontent.com/u/39949?v=4)](https://github.com/jasonrm "jasonrm (3 commits)")

---

Tags

containercontainer-interopPSR-11dependency-injectiondiiocpsr11

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/liuxingwei-lxw-php-di/health.svg)](https://phpackages.com/packages/liuxingwei-lxw-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)
