Download the PHP package jjok/di without Composer
On this page you can find all versions of the php package jjok/di. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor jjok
Package di
Short Description Super-simple dependency injection for PHP.
License MIT
Homepage https://github.com/jjok/DI
Package di
Short Description Super-simple dependency injection for PHP.
License MIT
Homepage https://github.com/jjok/DI
Keywords dependency injectiondi
Please rate this library. Is it a good library?
Informations about the package di
DI
Super-simple dependency injection for PHP.
It's a bit like Pimple, but has a namespace and does less stuff.
Example
$container = new \jjok\DI\Container(array(
'SomeDependency' => function($self, $param) {
return new SomeDependency($param);
},
'SomeClass' => function($self) {
return new SomeClass($self->call('SomeDependency', 'some-param'));
}
));
$some_object = $container->call('SomeClass');
Dependencies
Copyright (c) 2013 Jonathan Jefferies
All versions of di with dependencies
PHP Build Version
Package Version
The package jjok/di contains the following files
Loading the files please wait ...
