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

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

dev256/di
=========

Simple dependency injection

1.0.4(4y ago)06.2k↓33.3%1MITPHPPHP &gt;=8

Since Feb 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/06romix/di)[ Packagist](https://packagist.org/packages/dev256/di)[ RSS](/packages/dev256-di/feed)WikiDiscussions main Synced yesterday

READMEChangelog (5)DependenciesVersions (6)Used By (1)

Simple Dependency Injection
===========================

[](#simple-dependency-injection)

Getting Started
---------------

[](#getting-started)

1. Create a new instance of \\Di\\ObjectManager

```
$objectManager = new \Di\ObjectManager;
```

2. Use ObjectManager to retrieve other classes

```
$someClass = $objectManager->get(\Namespace\Class::class);
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

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

Total

5

Last Release

1646d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1cf06e156244957c58c3a41f372bed5b8054a06a8615ac58fccfdfa5bc68b901?d=identicon)[romix06](/maintainers/romix06)

---

Top Contributors

[![06romix](https://avatars.githubusercontent.com/u/13871744?v=4)](https://github.com/06romix "06romix (11 commits)")

---

Tags

diobject manager

### Embed Badge

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

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

###  Alternatives

[level-2/dice

A minimalist Dependency injection container (DIC) for PHP. Please note: 3.0+ is only compatible with PHP 7.0. The 2.0 branch is compatbile with PHP 5.6.

436797.2k21](/packages/level-2-dice)[hyperf/di

A DI for Hyperf.

173.0M691](/packages/hyperf-di)[marcelog/ding

PHP Dependency Injection based on Spring(tm), with Aspect Oriented Programming, MVC

1192.1k](/packages/marcelog-ding)[x-wp/di

The dependency injection container for WordPress

314.3k14](/packages/x-wp-di)

PHPackages © 2026

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