mindplay / unravel
implements a middleware stack for modular resolution of parameters to values
dev-master
2016-08-20 17:03 UTC
Requires
- php: >= 5.4
- container-interop/container-interop: ^1
- mindplay/readable: ^1
Requires (Dev)
- mindplay/testies: dev-master
- phpunit/php-code-coverage: ^2 || ^3
This package is auto-updated.
Last update: 2024-11-25 21:08:06 UTC
README
This library implements a middleware stack for modular resolution of parameters to functions, closures, methods and constructors.
You can use this library to implement invokers or factories, in Dependency Injection containers, controller dispatchers in web-frameworks, and so forth.
This library provides components for integration with any container-interop-compliant dependency-injection container, in the form of resolvers (middleware) that resolves either type-hints or parameter-names against IDs in a container.
Usage
Pretty simple, but best explained by example.