Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bauhausphp/middleware-chain
PSR-15 middleware chain
https://github.com/bauhausphp/middleware-chain
chain middleware psr-15 psr-7
Last synced: 26 days ago
JSON representation
PSR-15 middleware chain
- Host: GitHub
- URL: https://github.com/bauhausphp/middleware-chain
- Owner: bauhausphp
- License: mit
- Created: 2017-05-23T02:38:17.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2021-03-23T09:08:34.000Z (almost 4 years ago)
- Last Synced: 2024-11-07T01:15:37.243Z (3 months ago)
- Topics: chain, middleware, psr-15, psr-7
- Language: PHP
- Homepage:
- Size: 58.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://img.shields.io/travis/bauhausphp/middleware-chain/master.svg?style=flat-square)](https://travis-ci.org/bauhausphp/middleware-chain)
[![Coverage Status](https://img.shields.io/coveralls/bauhausphp/middleware-chain/master.svg?style=flat-square)](https://coveralls.io/github/bauhausphp/middleware-chain?branch=master)
[![Codacy Badge](https://img.shields.io/codacy/grade/1cdc8910ddb0474bbd7cce0241124a71/master.svg?style=flat-square)](https://www.codacy.com/app/bauhausphp/middleware-chain)[![Latest Stable Version](https://poser.pugx.org/bauhaus/middleware-chain/v/stable?format=flat-square)](https://packagist.org/packages/bauhaus/middleware-chain)
[![Latest Unstable Version](https://poser.pugx.org/bauhaus/middleware-chain/v/unstable?format=flat-square)](https://packagist.org/packages/bauhaus/middleware-chain)
[![Total Downloads](https://poser.pugx.org/bauhaus/middleware-chain/downloads?format=flat-square)](https://packagist.org/packages/bauhaus/middleware-chain)
[![License](https://poser.pugx.org/bauhaus/middleware-chain/license?format=flat-square)](LICENSE)
[![composer.lock available](https://poser.pugx.org/bauhaus/middleware-chain/composerlock?format=flat-square)](https://packagist.org/packages/bauhaus/middleware-chain)# Bauhaus Middleware Chain
This package helps you to build a [PSR-15 Middleware](https://github.com/php-fig/fig-standards/tree/master/proposed/http-middleware)
chain to process [PSR-7 Server Requests](http://www.php-fig.org/psr/psr-7/#psrhttpmessageserverrequestinterface)
and get [PSR-7 Response](http://www.php-fig.org/psr/psr-7/#psrhttpmessageresponseinterface).```php
stackUp(new Middleware1());
$chain->stackUp(Middleware2::class); // This will be loaded with $diContainer->get(Middleware2::class)$response = $chain->handle($request);
```