2017 © Pedro Peláez
 

library zend-di

Automated dependency injection and instance manager

image

zendframework/zend-di

Automated dependency injection and instance manager

  • Friday, January 26, 2018
  • by zendframework
  • Repository
  • 22 Watchers
  • 22 Stars
  • 3,859,297 Installations
  • PHP
  • 44 Dependents
  • 6 Suggesters
  • 22 Forks
  • 2 Open issues
  • 66 Versions
  • 9 % Grown

The README.md

zend-di

Repository abandoned 2019-12-31

This repository has moved to laminas/laminas-di., (*1)

Build Status Coverage Status, (*2)

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., (*3)

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

  • 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:, (*5)

  • 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., (*6)

  • File issues at https://github.com/zendframework/zend-di/issues
  • Documentation is at https://docs.zendframework.com/zend-di/

The Versions

26/01 2018

dev-develop

dev-develop

Automated dependency injection and instance manager

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

zf2 zendframework zf di psr-11

15/12 2017

dev-master

9999999-dev

Automated dependency injection and instance manager

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

zf2 zendframework zf di psr-11

30/11 2017

3.0.0

3.0.0.0

Automated dependency injection and instance manager

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

zendframework zf di psr-11