PHPackages                             alanvdb/middleware-dispatcher - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. alanvdb/middleware-dispatcher

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

alanvdb/middleware-dispatcher
=============================

A basic PSR compliant middleware dispatcher

v1.0.0(1y ago)0191MITPHP

Since Aug 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Alanvdb/middleware-dispatcher)[ Packagist](https://packagist.org/packages/alanvdb/middleware-dispatcher)[ RSS](/packages/alanvdb-middleware-dispatcher/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (1)

middleware-dispatcher
=====================

[](#middleware-dispatcher)

A basic PSR compliant middleware dispatcher.

Overview
--------

[](#overview)

The `middleware-dispatcher` library provides a simple and extensible middleware dispatcher that complies with the PSR-15 standards. It allows you to handle HTTP server requests by processing a stack of middlewares.

Features
--------

[](#features)

- PSR-15 compliant
- Simple and easy-to-use API
- Supports any PSR-15 compatible middlewares
- Handles exceptions and invalid middlewares gracefully

Installation
------------

[](#installation)

To install the `middleware-dispatcher` library, use Composer:

```
composer require alanvdb/middleware-dispatcher
```

Usage
-----

[](#usage)

Here is an example of how to use the `middleware-dispatcher`:

```
