PHPackages                             leevel/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. leevel/di

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

leevel/di
=========

The Leevel Di Package.

v2.0.6(1y ago)09211MITPHPPHP &gt;=8.4.1

Since Nov 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/leevels/di)[ Packagist](https://packagist.org/packages/leevel/di)[ Docs](http://queryphp.com)[ RSS](/packages/leevel-di/feed)WikiDiscussions master Synced 6d ago

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

Di
==

[](#di)

[![Latest Stable Version](https://camo.githubusercontent.com/01624c052c08d347fb4b3f3d84db0899f4c92d1f5cbd6f5f986a575e8d0f6a66/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c656576656c2f64692e737667)](https://packagist.org/packages/leevel/di)[![Minimum PHP Version](https://camo.githubusercontent.com/ff973d997d28d971c1cb542bde9469846d215e671126a6dd979036dd84cda600/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e342e312d3838393242462e737667)](https://php.net)[![QueryPHP Doc](https://camo.githubusercontent.com/ea1431167b522b88916c717b0bfe6348328a8662a684bb128f0b0bd6d22a20d5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63732d70617373696e672d677265656e2e7376673f6d61784167653d32353932303030)](https://www.queryphp.com/docs/)

QueryPHP Di Component.

Install
-------

[](#install)

- composer command

```
composer require leevel/di
```

Resources
---------

[](#resources)

- [Documentation IOC](https://www.queryphp.com/docs/architecture/ioc.html)
- [Documentation Service Provider](https://www.queryphp.com/docs/architecture/provider.html)
- [Contributing](https://www.queryphp.com/docs/developer/)
- [Report issues](https://github.com/hunzhiwange/framework/issues) and [send Pull Requests](https://github.com/hunzhiwange/framework/pulls)in the [main QueryPHP repository](https://github.com/hunzhiwange/framework)

LICENSE
-------

[](#license)

The Component is open-sourced software licensed under the [MIT license](LICENSE).

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance40

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity90

Battle-tested with a long release history

 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 ~74 days

Recently: every ~169 days

Total

31

Last Release

525d ago

Major Versions

v1.1.53 → v2.0.62024-12-09

PHP version history (8 changes)v1.0.0-alpha.2PHP ^7.1.3

v1.0.0-beta.1PHP ^7.3.2

v1.0.0-rc.3PHP ^7.4.0

v1.0.2PHP ^7.4.0 || ^8.0

v1.1.0-alpha.1PHP ^8.0

v1.1.0-rc.4PHP &gt;=8.1

v1.1.53PHP &gt;=8.3

v2.0.6PHP &gt;=8.4.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/735e710d4c01fcfa7c2bb9d5e6760112cc192b578cac4978ce99ddb6aa726fe5?d=identicon)[hunzhiwange](/maintainers/hunzhiwange)

---

Top Contributors

[![doyouhaobaby](https://avatars.githubusercontent.com/u/2012511?v=4)](https://github.com/doyouhaobaby "doyouhaobaby (151 commits)")

### Embed Badge

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

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

###  Alternatives

[symfony/dependency-injection

Allows you to standardize and centralize the way objects are constructed in your application

4.2k431.1M7.5k](/packages/symfony-dependency-injection)[illuminate/contracts

The Illuminate Contracts package.

704122.9M10.1k](/packages/illuminate-contracts)[illuminate/container

The Illuminate Container package.

31278.1M2.0k](/packages/illuminate-container)[ecotone/ecotone

Supporting you in building DDD, CQRS, Event Sourcing applications with ease.

558549.8k17](/packages/ecotone-ecotone)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)[internal/dload

Downloads binaries.

98142.7k10](/packages/internal-dload)

PHPackages © 2026

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