Download the PHP package interophp/injector without Composer
On this page you can find all versions of the php package interophp/injector. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download interophp/injector
More information about interophp/injector
Files in interophp/injector
Download interophp/injector
More information about interophp/injector
Files in interophp/injector
Vendor interophp
Package injector
Short Description Inject dependencies into constructors and methods
License MIT
Homepage http://www.github.com/interophp/injector
Package injector
Short Description Inject dependencies into constructors and methods
License MIT
Homepage http://www.github.com/interophp/injector
Please rate this library. Is it a good library?
Informations about the package injector
Injector
Simple constructor and method argument injector.
You can pass a context to the injector to resolve parameters into injectable values.
Supported contexts:
- ArrayContext: Resolves by a simple associative array's key/value
- RequestContext: Uses a PSR7 ServerRequest to resolve values from request attributes
- InteropContainerContext: Add support for DI containers implementing
Interop\Container\ContainerInterface
- PsrContainerContext: Add support for DI containers implementing
Psr\Container\ContainerInterface
- MultiContext: Pass an array of one or more of the above contexts to resolve from multiple contexts.
It's simple to add your own contexts by implementing InteroPhp\Injector\Context\ContextInterface
Examples and usage
Please check the included example/
directory for usage examples.
License
MIT (see LICENSE.md)
Brought to you by the LinkORB Engineering team
Check out our other projects at linkorb.com/engineering.
Btw, we're hiring!
All versions of injector with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.5.0
The package interophp/injector contains the following files
Loading the files please wait ....