Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mindplay-dk/unravel
EXPERIMENTAL :warning: implements a middleware stack for modular resolution of parameters to values
https://github.com/mindplay-dk/unravel
Last synced: about 1 month ago
JSON representation
EXPERIMENTAL :warning: implements a middleware stack for modular resolution of parameters to values
- Host: GitHub
- URL: https://github.com/mindplay-dk/unravel
- Owner: mindplay-dk
- Created: 2016-08-20T16:35:59.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-20T17:03:18.000Z (over 8 years ago)
- Last Synced: 2024-10-13T13:09:21.479Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
mindplay/unravel
================This library implements a middleware stack for modular resolution of parameters
to functions, closures, methods and constructors.[![PHP Version](https://img.shields.io/badge/php-5.4%2B-blue.svg)](https://packagist.org/packages/mindplay/unravel)
[![Build Status](https://travis-ci.org/mindplay-dk/middleman.svg)](https://travis-ci.org/mindplay-dk/unravel)
[![Code Coverage](https://scrutinizer-ci.com/g/mindplay-dk/unravel/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/mindplay-dk/unravel/?branch=master)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/mindplay-dk/unravel/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/mindplay-dk/unravel/?branch=master)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](https://github.com/container-interop/container-interop)-compliant
dependency-injection container, in the form of resolvers (middleware) that resolves
either [type-hints](src/resolvers/ContainerTypeResolver.php) or
[parameter-names](src/resolvers/ContainerNameResolver.php) against IDs in a container.### Usage
Pretty simple, but best explained [by example](test/example.php).