2017 © Pedro Peláez
 

library init

phmLabs component for initializing class using a yaml file / array

image

phmlabs/init

phmLabs component for initializing class using a yaml file / array

  • Thursday, January 14, 2016
  • by phmLabs
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2,185 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 7 % Grown

The README.md

phmLabs::Init

This library is a very lightweight dependency injection container. The special thing about Init is that it uses names parameters and fits perfectly with yaml files this way., (*1)

class MyClass {
  public function __construct($firstParam, $secondParam = null) {
    // ...
  }
}

$options = [
    'class' => 'MyClass',
    'call' => [
      '__construct' => ['secondParam' => 'foo', 'firstParam' => 'bar']
    ]
]

$myClass = Init::initialize($options);

The Versions

14/01 2016

dev-master

9999999-dev https://www.thewebhatesme.com

phmLabs component for initializing class using a yaml file / array

  Sources   Download

MIT

The Requires

 

14/01 2016

1.0.2

1.0.2.0 https://www.thewebhatesme.com

phmLabs component for initializing class using a yaml file / array

  Sources   Download

MIT

The Requires

 

15/06 2015

1.0.1

1.0.1.0 https://www.thewebhatesme.com

phmLabs component for initializing class using a yaml file / array

  Sources   Download

MIT

The Requires

 

04/06 2015

1.0.0

1.0.0.0 https://www.thewebhatesme.com

phmLabs component for initializing class using a yaml file / array

  Sources   Download

MIT

The Requires