PHPackages                             ingenioz-it/edict - 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. ingenioz-it/edict

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

ingenioz-it/edict
=================

A slim, PSR 11, framework-agnostic DI container

v4.0.0(8mo ago)412911MITPHPPHP &gt;=8.4CI passing

Since Mar 9Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/IngeniozIT/psr-container-edict)[ Packagist](https://packagist.org/packages/ingenioz-it/edict)[ Docs](https://github.com/IngeniozIT/psr-container-edict)[ RSS](/packages/ingenioz-it-edict/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (9)Dependencies (8)Versions (10)Used By (1)

Edict
=====

[](#edict)

EDICT (**E**asy **DI** **C**on**T**ainer) is a slim, [PSR 11](https://www.php-fig.org/psr/psr-11/), framework-agnostic dependency injection container.

Cool features:

- [Autowiring](#autowiring) support *(can be toggled off)*
- [PHP attributes](#php-attributes) support
- 100% tested and documented
- Uses an up-to-date PHP version

About
-----

[](#about)

InfoValueLatest release[![Packagist Version](https://camo.githubusercontent.com/6bb265251e65062e07c2387fc3c72a24cde74ff214da882708ae5a832d22d0e8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e67656e696f7a2d69742f6564696374)](https://packagist.org/packages/ingenioz-it/edict)Requires[![PHP from Packagist](https://camo.githubusercontent.com/67cabc7d201c5b5f04a4852b55c687dee11550aa6aa3397b3d4885657a416111/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f696e67656e696f7a2d69742f65646963742e737667)](https://camo.githubusercontent.com/67cabc7d201c5b5f04a4852b55c687dee11550aa6aa3397b3d4885657a416111/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f696e67656e696f7a2d69742f65646963742e737667)License[![Packagist](https://camo.githubusercontent.com/05f10b9cdc63b88d97371f9b1d5094a97047edde1110038845f39657335d6790/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f696e67656e696f7a2d69742f6564696374)](https://camo.githubusercontent.com/05f10b9cdc63b88d97371f9b1d5094a97047edde1110038845f39657335d6790/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f696e67656e696f7a2d69742f6564696374)Unit tests[![tests](https://github.com/IngeniozIT/psr-container-edict/actions/workflows/1-tests.yml/badge.svg)](https://github.com/IngeniozIT/psr-container-edict/actions/workflows/1-tests.yml)Code coverage[![Code Coverage](https://camo.githubusercontent.com/4b962a6e4db83850bedae7dded0fa8338da9d42e851b79f48325fe2f3d49dc32/68747470733a2f2f636f6465636f762e696f2f67682f496e67656e696f7a49542f7073722d636f6e7461696e65722d65646963742f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/IngeniozIT/psr-container-edict)Code quality[![code-quality](https://github.com/IngeniozIT/psr-container-edict/actions/workflows/2-code-quality.yml/badge.svg)](https://github.com/IngeniozIT/psr-container-edict/actions/workflows/2-code-quality.yml)Quality tested with[phpunit](https://github.com/sebastianbergmann/phpunit), [phan](https://github.com/phan/phan), [psalm](https://github.com/vimeo/psalm), [phpcs](https://github.com/squizlabs/PHP_CodeSniffer), [phpstan](https://github.com/phpstan/phpstan), [phpmd](https://github.com/phpmd/phpmd), [infection](https://github.com/infection/infection)Installation
------------

[](#installation)

```
composer require ingenioz-it/edict
```

How to use
----------

[](#how-to-use)

To learn more about how to use Edict, please refer to the [wiki](https://github.com/IngeniozIT/psr-container-edict/wiki).

Full documentation
------------------

[](#full-documentation)

You can list the available features by running

```
composer testdox
```

The corresponding code samples are located in the [unit tests file](tests/ContainerTest.php).

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance61

Regular maintenance activity

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 97.8% 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 ~256 days

Recently: every ~304 days

Total

9

Last Release

247d ago

Major Versions

v1.1.0 → v2.0.02022-01-23

v2.1.1 → v3.0.02023-04-15

v3.1.0 → v4.0.02025-10-21

PHP version history (5 changes)v1.0.0PHP &gt;=7.4

v1.1.0PHP &gt;=8.0

v2.0.0PHP &gt;=8.1

v3.0.0PHP &gt;=8.2

v4.0.0PHP &gt;=8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/167b1b0644440255e02a195b70b29024f6dff62bf886c7450553dc13d354a95b?d=identicon)[Ingenioz IT](/maintainers/Ingenioz%20IT)

---

Top Contributors

[![IngeniozIT](https://avatars.githubusercontent.com/u/41050198?v=4)](https://github.com/IngeniozIT "IngeniozIT (44 commits)")[![francoisbaveye](https://avatars.githubusercontent.com/u/93761566?v=4)](https://github.com/francoisbaveye "francoisbaveye (1 commits)")

---

Tags

clean-codedependency-injectionphppsr-11containerPSR-11diioc

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ingenioz-it-edict/health.svg)

```
[![Health](https://phpackages.com/badges/ingenioz-it-edict/health.svg)](https://phpackages.com/packages/ingenioz-it-edict)
```

###  Alternatives

[php-di/php-di

The dependency injection container for humans

2.8k53.2M1.2k](/packages/php-di-php-di)[slince/di

A flexible dependency injection container

20268.4k6](/packages/slince-di)

PHPackages © 2026

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