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

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

dhii/di-abstract
================

Base abstract classes for DI container implementations

v0.1(9y ago)04.6k↓70.9%[1 issues](https://github.com/Dhii/di-abstract/issues)[1 PRs](https://github.com/Dhii/di-abstract/pulls)2MITPHPPHP ^5.3 | ^7.0

Since Feb 2Pushed 8y ago3 watchersCompare

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

READMEChangelog (2)Dependencies (7)Versions (8)Used By (2)

Dhii - DI Abstract
==================

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

[![Build Status](https://camo.githubusercontent.com/80357fe76ddf459ef5a23a35cf50e41b3af000e9a475bf831593e238879afc17/68747470733a2f2f7472617669732d63692e6f72672f446869692f64692d61627374726163742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Dhii/di-abstract)[![Code Climate](https://camo.githubusercontent.com/82860925ae768da0f58bff0bcc6c78b6b91876090b9cf9f86b5ef09768c74351/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f446869692f64692d61627374726163742f6261646765732f6770612e737667)](https://codeclimate.com/github/Dhii/di-abstract)[![Test Coverage](https://camo.githubusercontent.com/23ad09e20b89b1a43bfffc10fd4d792c8aee1e640ee1d934cfda09a9c40ff75b/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f446869692f64692d61627374726163742f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/Dhii/di-abstract/coverage)[![Latest Stable Version](https://camo.githubusercontent.com/14704ec0d5bb9e49930c6c3654d405ba4b66d9ff8decb1bdd68d2cf787eb01e8/68747470733a2f2f706f7365722e707567782e6f72672f646869692f64692d61627374726163742f76657273696f6e)](https://packagist.org/packages/dhii/di-abstract)[![This package complies with Dhii standards](https://camo.githubusercontent.com/44bbe8c7678c1784cfc53cabce5d3e32fc22a840453c5ed9c08601522fe7c213/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446869692d436f6d706c69616e742d677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/Dhii/dhii)

Details
-------

[](#details)

Abstract, standards-compliant, yet de-coupled functionality that can be used to create DI containers.

### Traits

[](#traits)

- [`AssignDefinitionContainerCapableTrait`](src/AssignDefinitionContainerCapableTrait.php) - Allows forcing a service definition to be invoked with a specific container.
- [`GetServiceCapableCachingTrait`](src/GetServiceCapableCachingTrait.php) - Cached retrieval of a resolved service by key.
- [`ResolveDefinitionCapableTrait`](src/ResolveDefinitionCapableTrait.php) - Resolution of a service definition.
- [`ServiceCacheAwareTrait`](src/ServiceCacheAwareTrait.php) - Awareness of a service cache.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60.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 ~422 days

Total

2

Last Release

3015d ago

PHP version history (2 changes)v0.1PHP ^5.3 | ^7.0

v0.2-alpha1PHP ^5.4 | ^7.0

### 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 (46 commits)")[![mecha](https://avatars.githubusercontent.com/u/5425482?v=4)](https://github.com/mecha "mecha (30 commits)")

---

Tags

abstractdependency-injectionstandard-conform

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  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)
