2017 © Pedro Peláez
 

project di

dependency injection container

image

dmitry-suffi/di

dependency injection container

  • Saturday, January 27, 2018
  • by dmitry-suffi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 53 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 13 Versions
  • 0 % Grown

The README.md

Dependency injection container

Build Status Coveralls, (*1)

Dependency injection container Martin Fowler's article, (*2)

Dependency injection container — it is an object to instantiate the class and its dependent objects., (*3)

This is in accordance with the recommendations of PSR-11., (*4)

It supports the following kinds of dependency injection:, (*5)

  • Constructor injection;
  • Property injection;
  • Setter injection

Example:

use suffi\di\Container;

$foo = new Foo();
$bar = new Bar();
$thy = new Thy();

$container->set('foo', $foo);
$container->set('bar', $bar);
$container->set('thy', $thy);

$container->setDefinition('common', 'Common')
    ->parameter('foo', 'foo')
    ->property('bar', $bar)
    ->setter('thy', 'thy');

$common = $container->get('common');

Installation

composer require dmitry-suffi/di

Documentation

the documentation can be found here: * English * Russian, (*6)

Tests

You can also browse the functional tests, (*7)

License

Copyright (c) 2016-2016 Dmitry Suffi. Released under the MIT license., (*8)

The Versions

27/01 2018

dev-master

9999999-dev https://github.com/dmitry-suffi/di-container

dependency injection container

  Sources   Download

MIT BSD-3-Clause

The Requires

 

The Development Requires

by Dmitry Suffi

container di

06/01 2018

1.2.2

1.2.2.0 https://github.com/dmitry-suffi/di-container

dependency injection container

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dmitry Suffi

container di

02/11 2017

dev-dmitry-suffi-fix_docs

dev-dmitry-suffi-fix_docs https://github.com/dmitry-suffi/di-container

dependency injection container

  Sources   Download

MIT

The Requires

 

The Development Requires

container di

13/10 2017

1.2.0

1.2.0.0 https://github.com/dmitry-suffi/di-container

dependency injection container

  Sources   Download

MIT

The Requires

 

The Development Requires

container di

13/10 2017

dev-feature/psr-11

dev-feature/psr-11 https://github.com/dmitry-suffi/di-container

dependency injection container

  Sources   Download

MIT

The Requires

 

The Development Requires

container di

13/06 2017

1.1.2

1.1.2.0 https://github.com/dmitry-suffi/di-container

dependency injection container

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

container di

13/06 2017

dev-develop

dev-develop https://github.com/dmitry-suffi/di-container

dependency injection container

  Sources   Download

MIT BSD-3-Clause

The Requires

  • php >=7.0.0

 

The Development Requires

container di

13/06 2017

dev-feature/travis

dev-feature/travis https://github.com/dmitry-suffi/di-container

dependency injection container

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

container di

05/04 2017

1.1.1

1.1.1.0 https://github.com/dmitry-suffi/di-container

dependency injection container

  Sources   Download

BSD-3-Clause

The Requires

  • php >=7.0.0

 

The Development Requires

container di

19/12 2016

1.1.0

1.1.0.0 https://github.com/dmitry-suffi/di-container

dependency injection container

  Sources   Download

BSD-3-Clause

The Requires

  • php >=7.0.0

 

The Development Requires

container di

21/10 2016

1.0.2

1.0.2.0 https://github.com/dmitry-suffi/di-container

dependency injection container

  Sources   Download

BSD-3-Clause

The Requires

  • php >=7.0.0

 

The Development Requires

container di

15/07 2016

0.1.0

0.1.0.0 https://github.com/dmitry-suffi/di-container

dependency injection container

  Sources   Download

BSD-3-Clause

The Requires

  • php >=7.0.0

 

The Development Requires

container di

15/07 2016

1.0.0

1.0.0.0 https://github.com/dmitry-suffi/di-container

dependency injection container

  Sources   Download

BSD-3-Clause

The Requires

  • php >=7.0.0

 

The Development Requires

container di