PHPackages                             dhii/di-interface - 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. dhii/di-interface

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

dhii/di-interface
=================

Interfaces for DI container implementations

v0.1(9y ago)03.1k↓70.3%[3 issues](https://github.com/Dhii/di-interface/issues)[1 PRs](https://github.com/Dhii/di-interface/pulls)3MITPHPPHP ^5.3 | ^7.0

Since Feb 2Pushed 9y ago3 watchersCompare

[ Source](https://github.com/Dhii/di-interface)[ Packagist](https://packagist.org/packages/dhii/di-interface)[ RSS](/packages/dhii-di-interface/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (6)Versions (7)Used By (3)

Dhii - DI Interface
-------------------

[](#dhii---di-interface)

[![Build Status](https://camo.githubusercontent.com/2b5062ddcf961600a3704634119a05699c0e88c57ee61e4d126dbe27ba07d218/68747470733a2f2f7472617669732d63692e6f72672f446869692f64692d696e746572666163652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Dhii/di-interface)[![Code Climate](https://camo.githubusercontent.com/1e145ab461fea2024a9cae86c02c874069924a5f39f1dc9ed9b4b4c4edd14674/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f446869692f64692d696e746572666163652f6261646765732f6770612e737667)](https://codeclimate.com/github/Dhii/di-interface)[![Test Coverage](https://camo.githubusercontent.com/623fe599a71295a192afb4407f9ad296e888c68127e5045c9469093d34787559/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f446869692f64692d696e746572666163652f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/Dhii/di-interface/coverage)

Interfaces for DI container implementations. In addition to existing [container-interop](https://github.com/container-interop/container-interop) and [service-provider](https://github.com/container-interop/service-provider) proxies, provides the following:

- [`CompositeContainerInterface`](https://github.com/Dhii/di-interface/blob/master/src/CompositeContainerInterface.php) - enables [lookup delegation](https://github.com/container-interop/container-interop/blob/master/docs/Delegate-lookup.md).
- [`WritableCompositeContainerInterface`](https://github.com/Dhii/di-interface/blob/master/src/WritableCompositeContainerInterface.php) - a composite container that can have containers added.
- [`WritableContainerInterface`](https://github.com/Dhii/di-interface/blob/master/src/WritableContainerInterface.php) - a container that can have service definitions added.
- [`FactoryInterface`](https://github.com/Dhii/di-interface/blob/master/src/FactoryInterface.php) - enables standard [factory](https://github.com/container-interop/container-interop/issues/44) implementation.
- [`ExceptionInterface`](https://github.com/Dhii/di-interface/blob/master/src/ExceptionInterface.php) - any DI exception.

The packages adheres to the [SemVer](http://semver.org/) specification, and there will be full backward compatibility between minor versions. Additionally, it follows the rule of the [caret operator](https://getcomposer.org/doc/articles/versions.md#caret), i.e. there will be full backward compatibility between patch pre-release versions.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 62.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

Unknown

Total

1

Last Release

3438d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1894e91b32c9f80d8f30a42d360af6983a507f1cf2c621b7c9a0a0de14e011c5?d=identicon)[XedinUnknown](/maintainers/XedinUnknown)

---

Top Contributors

[![XedinUnknown](https://avatars.githubusercontent.com/u/1428973?v=4)](https://github.com/XedinUnknown "XedinUnknown (15 commits)")[![mecha](https://avatars.githubusercontent.com/u/5425482?v=4)](https://github.com/mecha "mecha (9 commits)")

---

Tags

dependency-injectionfactorystandardstandard-conform

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[api-clients/command-bus

Light weight wrapper around league/tactician adding promised based interface(s) and next tick execution

11198.0k4](/packages/api-clients-command-bus)[michaels/data-manager

Simple data manager for nested data, dot notation array access, extendability, and container interoperability.

132.0k2](/packages/michaels-data-manager)

PHPackages © 2026

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