mindplay/unravel

implements a middleware stack for modular resolution of parameters to values

dev-master 2016-08-20 17:03 UTC

This package is auto-updated.

Last update: 2024-10-25 21:03:33 UTC


README

This library implements a middleware stack for modular resolution of parameters to functions, closures, methods and constructors.

PHP Version Build Status Code Coverage Scrutinizer Code Quality

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.