2017 © Pedro Peláez
 

library air

simple & smart dependency injection

image

litphp/air

simple & smart dependency injection

  • Friday, June 22, 2018
  • by mcfog
  • Repository
  • 1 Watchers
  • 0 Stars
  • 29 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 4 % Grown

The README.md

Lit Air

Dependency Injection for Lit, (*1)

Scrutinizer Code Quality Code Coverage Build Status, (*2)

Documentation, (*3)

Features

  • PSR-11 compliant, (*4)

  • Recipe (for singleton, alias, lazy instantiate, etc.), (*5)

  • Delegate lookup, (*6)

    • works with composite container pattern
    • provide features for other container
  • Smart autowire, (*7)

    Factory::of($container)->produce($className[, $extraParameters]);
    
    • in addition to classname, search parameter name & position for dependency
    • parameter with default value can safely ignored
    • provide extra parameter at call time
  • Method injection and injected instantiate, (*8)

    Factory::of($container)->instantiate($className[, $extraParameters]); //this won't write $className to $container
    Factory::of($container)->invoke($callback[, $extraParameters]);
    
    • one-shot dependency injection
  • Configure your container with several approach, (*9)

    • chained method call (php native)
    • php array
    • ​json/yaml (not yet)

The Versions

22/06 2018

dev-master

9999999-dev

simple & smart dependency injection

  Sources   Download

ISC

The Requires

 

The Development Requires

by McFog Wang

06/01 2018

dev-HEAD

dev-HEAD

simple & smart dependency injection

  Sources   Download

ISC

The Requires

 

The Development Requires

by McFog Wang

27/12 2017

v0.1.6

0.1.6.0

simple & smart dependency injection

  Sources   Download

ISC

The Requires

 

The Development Requires

by McFog Wang

13/12 2017

v0.1.5

0.1.5.0

simple & smart dependency injection

  Sources   Download

ISC

The Requires

 

The Development Requires

by McFog Wang

15/10 2017

v0.1.4

0.1.4.0

simple & smart dependency injection

  Sources   Download

ISC

The Requires

 

The Development Requires

by McFog Wang

11/10 2017

v0.1.3

0.1.3.0

simple & smart dependency injection

  Sources   Download

ISC

The Requires

 

The Development Requires

by McFog Wang

08/10 2017

v0.1.2

0.1.2.0

simple & smart dependency injection

  Sources   Download

ISC

The Requires

 

The Development Requires

by McFog Wang

08/10 2017

v0.1.1

0.1.1.0

simple & smart dependency injection

  Sources   Download

ISC

The Requires

 

The Development Requires

by McFog Wang

07/10 2017

v0.1.0

0.1.0.0

simple & smart dependency injection

  Sources   Download

ISC

The Requires

 

The Development Requires

by McFog Wang