Download the PHP package mrprompt/silex-di-container-provider without Composer
On this page you can find all versions of the php package mrprompt/silex-di-container-provider. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mrprompt/silex-di-container-provider
More information about mrprompt/silex-di-container-provider
Files in mrprompt/silex-di-container-provider
Download mrprompt/silex-di-container-provider
More information about mrprompt/silex-di-container-provider
Files in mrprompt/silex-di-container-provider
Vendor mrprompt
Package silex-di-container-provider
Short Description A simple dependency injection builder to Silex
License MIT
Package silex-di-container-provider
Short Description A simple dependency injection builder to Silex
License MIT
Please rate this library. Is it a good library?
Informations about the package silex-di-container-provider
Silex DI Builder
A simple dependency injection builder to Silex based on YAML file config.
Install
Usage
Simple create a di.yml - or other name, of course - file with the structure:
When:
- alias1 - Is the alias from Silex
- Full\Class\Name and Full\ClassTwo\Name - The class name to initialize
- dependency1 and dependecy2 - Dependencies from the class, must be an alias previously created or anything
In your application bootstrap, register YAML Config Service Provider, with your DI file
Now, your services is available on $app container.
Testing
Just run phpunit without parameters
Happy Silex Coding :)
All versions of silex-di-container-provider with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6
The package mrprompt/silex-di-container-provider contains the following files
Loading the files please wait ....