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

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

essential-php/php-di
====================

The essential of dependency injection container

1.0.x-dev(9y ago)18MITPHPPHP &gt;=7.0

Since Dec 25Pushed 9y ago1 watchersCompare

[ Source](https://github.com/essential-php/php-di)[ Packagist](https://packagist.org/packages/essential-php/php-di)[ RSS](/packages/essential-php-php-di/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

About
-----

[](#about)

Essential PHP-DI is a dependency injection container for PHP

Requirements
------------

[](#requirements)

Essential PHP-DI requires PHP version 7.0 or greater

Installation
------------

[](#installation)

```
$ composer require essential-php/php-di "~1.0"

```

Or alternatively, include a dependency for `essential-php/php-di` in your `composer.json` file. For example:

```
{
    "require": {
        "essential-php/php-di": "^1.0"
    }
}
```

Usage
-----

[](#usage)

```
use Essential\Di\Container;

$container = new Container();
$container->add('foo.bar', FooBar::class)
$fooBar = $container->get('foo.bar')
```

Issues
------

[](#issues)

Bug reports can be submitted on the [Github Issue Tracker](https://github.com/essential-php/php-di/issues).

License
-------

[](#license)

MIT License. See [LICENSE](LICENSE) for information.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

Unknown

Total

1

Last Release

3428d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a4fb23e1085131934a592bfd5bcb76588d3561d6f32b80cdd6e225598d8e18ab?d=identicon)[jmalekdev](/maintainers/jmalekdev)

---

Top Contributors

[![jmalekdev](https://avatars.githubusercontent.com/u/7666738?v=4)](https://github.com/jmalekdev "jmalekdev (5 commits)")

---

Tags

containerdependency-injectiondi

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[php-di/php-di

The dependency injection container for humans

2.8k48.9M994](/packages/php-di-php-di)[aura/di

A serializable dependency injection container with constructor and setter injection, interface and trait awareness, configuration inheritance, and much more.

356968.3k58](/packages/aura-di)[mrclay/props-dic

Props is a simple DI container that allows retrieving values via custom property and method names

3611.7M3](/packages/mrclay-props-dic)[slince/di

A flexible dependency injection container

20260.4k6](/packages/slince-di)[capsule/di

A PSR-11 compliant autowiring dependency injection container.

2857.5k2](/packages/capsule-di)

PHPackages © 2026

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