PHPackages                             techworker/middleware - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. techworker/middleware

ActiveLibrary[HTTP &amp; Networking](/categories/http)

techworker/middleware
=====================

PSR-7 middleware function for building and dispatching middlewares.

v1.0.1(9y ago)08MITHTML

Since May 4Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Techworker/middleware)[ Packagist](https://packagist.org/packages/techworker/middleware)[ RSS](/packages/techworker-middleware/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (5)Versions (2)Used By (0)

Functional PSR-7 HTTP message middleware
========================================

[](#functional-psr-7-http-message-middleware)

This library provides a single function to implement a PHP 7 middleware workflow for your PHP applications.

It is heavily inspired from the [relay php](https://http://relayphp.com/)implementation by [Paul M. Jones](https://github.com/pmjones)

Usage
-----

[](#usage)

Import the function and define a list of middlewares.

```
