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

Abandoned → [laminas/laminas-di](/?search=laminas%2Flaminas-di)ArchivedLibrary[PSR &amp; Standards](/categories/psr-standards)

zendframework/zend-di
=====================

Automated dependency injection for PSR-11 containers

3.1.2(6y ago)4612.0M—0.8%27[5 issues](https://github.com/zendframework/zend-di/issues)20BSD-3-ClausePHPPHP ^7.1

Since Oct 10Pushed 6y ago7 watchersCompare

[ Source](https://github.com/zendframework/zend-di)[ Packagist](https://packagist.org/packages/zendframework/zend-di)[ RSS](/packages/zendframework-zend-di/feed)WikiDiscussions master Synced yesterday

READMEChangelog (6)Dependencies (8)Versions (69)Used By (20)

zend-di
=======

[](#zend-di)

> ## Repository abandoned 2019-12-31
>
> [](#repository-abandoned-2019-12-31)
>
> This repository has moved to [laminas/laminas-di](https://github.com/laminas/laminas-di).

[![Build Status](https://camo.githubusercontent.com/c9be0fbab7786b6e5978dc7f98f987bdfb8a83a596b9dfcd14cce805f20dc135/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f7a656e646672616d65776f726b2f7a656e642d64692e7376673f6272616e63683d6d6173746572)](https://secure.travis-ci.org/zendframework/zend-di)[![Coverage Status](https://camo.githubusercontent.com/3eb9dab6668eab098294d59b403c4b4bb2961cef3951c810c2371de471b5c04a/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7a656e646672616d65776f726b2f7a656e642d64692f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/zendframework/zend-di?branch=master)

zend-di provides autowiring to implement Inversion of Control (IoC) containers. IoC containers are widely used to create object instances that have all dependencies resolved and injected. Dependency Injection containers are one form of IoC – but not the only form.

zend-di is designed to be simple, fast and reusable. It provides the following features:

- Constructor injection
- Autowiring:
    - Recursively through all dependencies
    - With configured type preferences
    - with configured injections
    - With injections passed in the create() call
- Code generators to create factories usable by other IoC containers like Zend\\ServiceManager

It does **not** provide:

- Setter, interface, property or any other injection method than constructor injection
- Support for factories
- Declaring shared/unshared instances
    - the injector always creates new instances
    - the default container always shares instances
- Support for variadic arguments in \_\_construct

If you need these features combine it with another IoC container such as [zend-servicemanager](https://docs.zendframework.com/zend-servicemanager/).

- File issues at
- Documentation is at

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity57

Moderate usage in the ecosystem

Community39

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 70.4% 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 ~40 days

Recently: every ~330 days

Total

66

Last Release

2396d ago

Major Versions

2.6.1 → 3.0.02017-11-30

PHP version history (4 changes)2.0.3PHP &gt;=5.3.3

2.3.0PHP &gt;=5.3.23

2.6.0PHP ^5.5 || ^7.0

3.0.0PHP ^7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/296074?v=4)[Zend Framework](/maintainers/zendframework)[@zendframework](https://github.com/zendframework)

---

Top Contributors

[![weierophinney](https://avatars.githubusercontent.com/u/25943?v=4)](https://github.com/weierophinney "weierophinney (4589 commits)")[![Maks3w](https://avatars.githubusercontent.com/u/1301698?v=4)](https://github.com/Maks3w "Maks3w (577 commits)")[![Ocramius](https://avatars.githubusercontent.com/u/154256?v=4)](https://github.com/Ocramius "Ocramius (388 commits)")[![tux-rampage](https://avatars.githubusercontent.com/u/558326?v=4)](https://github.com/tux-rampage "tux-rampage (176 commits)")[![EvanDotPro](https://avatars.githubusercontent.com/u/5607?v=4)](https://github.com/EvanDotPro "EvanDotPro (174 commits)")[![akrabat](https://avatars.githubusercontent.com/u/33135?v=4)](https://github.com/akrabat "akrabat (126 commits)")[![ezimuel](https://avatars.githubusercontent.com/u/475967?v=4)](https://github.com/ezimuel "ezimuel (97 commits)")[![ralphschindler](https://avatars.githubusercontent.com/u/76674?v=4)](https://github.com/ralphschindler "ralphschindler (37 commits)")[![marc-mabe](https://avatars.githubusercontent.com/u/302689?v=4)](https://github.com/marc-mabe "marc-mabe (36 commits)")[![sgehrig](https://avatars.githubusercontent.com/u/43394?v=4)](https://github.com/sgehrig "sgehrig (33 commits)")[![michalbundyra](https://avatars.githubusercontent.com/u/7423207?v=4)](https://github.com/michalbundyra "michalbundyra (33 commits)")[![Freeaqingme](https://avatars.githubusercontent.com/u/33034?v=4)](https://github.com/Freeaqingme "Freeaqingme (25 commits)")[![DASPRiD](https://avatars.githubusercontent.com/u/233300?v=4)](https://github.com/DASPRiD "DASPRiD (23 commits)")[![noopable](https://avatars.githubusercontent.com/u/75342?v=4)](https://github.com/noopable "noopable (21 commits)")[![samsonasik](https://avatars.githubusercontent.com/u/459648?v=4)](https://github.com/samsonasik "samsonasik (20 commits)")[![mwillbanks](https://avatars.githubusercontent.com/u/38209?v=4)](https://github.com/mwillbanks "mwillbanks (18 commits)")[![SocalNick](https://avatars.githubusercontent.com/u/294123?v=4)](https://github.com/SocalNick "SocalNick (15 commits)")[![froschdesign](https://avatars.githubusercontent.com/u/103362?v=4)](https://github.com/froschdesign "froschdesign (14 commits)")[![nickpeirson](https://avatars.githubusercontent.com/u/266466?v=4)](https://github.com/nickpeirson "nickpeirson (14 commits)")[![Thinkscape](https://avatars.githubusercontent.com/u/270528?v=4)](https://github.com/Thinkscape "Thinkscape (13 commits)")

---

Tags

PSR-11diZendFrameworkzf

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

564576.7k52](/packages/ecotone-ecotone)[wikimedia/parsoid

Parsoid, a bidirectional parser between wikitext and HTML5

187557.3k3](/packages/wikimedia-parsoid)[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)

PHPackages © 2026

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