2017 © Pedro Peláez
 

library creator

Automatic dependencies resolution.

image

ilya/creator

Automatic dependencies resolution.

  • Tuesday, June 10, 2014
  • by ilya.s
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Creator

Build Status, (*1)

Creator is a thin Reflection API wrapper that allows you to easily instantiate classes., (*2)

It will automatically read the constructor's dependencies and inject them into a new instance., (*3)

use Creator\Creator;

class Foo {

    public function __construct(AnotherClass $foo, $bar = 42)
    {
       # something here
    }

}

# do not want to instantiate it manually? here is what you can do
$foo = Creator::make('Foo'); # => new instance of Foo 

Additional information

Creator is licensed under the MIT license., (*4)

The Versions

10/06 2014

dev-master

9999999-dev

Automatic dependencies resolution.

  Sources   Download

MIT

The Development Requires

by Ilya S

automatic dependencies resolution

10/06 2014

2.0.0

2.0.0.0

Automatic dependencies resolution.

  Sources   Download

MIT

The Development Requires

by Ilya S

automatic dependencies resolution

03/04 2014

1.0.0

1.0.0.0

An example of automatic dependency resolution in PHP

  Sources   Download

MIT

The Development Requires

by Ilya S