PHPackages                             krak/mw - 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. [Framework](/categories/framework)
4. /
5. krak/mw

ActiveLibrary[Framework](/categories/framework)

krak/mw
=======

Middleware Framework

v0.5.2(9y ago)31.3k[3 issues](https://github.com/krakphp/mw/issues)6MITPHPPHP &gt;=5.6

Since Jul 11Pushed 9y ago1 watchersCompare

[ Source](https://github.com/krakphp/mw)[ Packagist](https://packagist.org/packages/krak/mw)[ Docs](https://github.com/krakphp/mw)[ RSS](/packages/krak-mw/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (5)Versions (18)Used By (6)

Mw (Middleware)
===============

[](#mw-middleware)

[![Author](https://camo.githubusercontent.com/6033b6afe8ffc0c46ec1ff2ad2420159e9083a972b757795f43b51060087f88f/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d40726167626f796a722d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/ragboyjr)[![Source Code](https://camo.githubusercontent.com/4f8d5e244f737c8ee2fc4d31889cbcaacb7abd46ddd2279b30d4241275f164d7/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d6b72616b2f6d772d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/krakphp/mw)[![Latest Version](https://camo.githubusercontent.com/4d2a7645aad58f6e1619a572a9debd263802ecef494633deecda1adf749eef6b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6b72616b7068702f6d772e7376673f7374796c653d666c61742d737175617265)](https://github.com/krakphp/mw/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Documentation Status](https://camo.githubusercontent.com/be321be955774f5499b6776e603ed7366c86c5428f1c2fe5c7b7190b3ab7d1c6/68747470733a2f2f72656164746865646f63732e6f72672f70726f6a656374732f6d772f62616467652f3f76657273696f6e3d6c6174657374)](http://mw.readthedocs.io/en/latest/?badge=latest)[![Total Downloads](https://camo.githubusercontent.com/807cd48f3c652c711a7d3a900b814c5d39374b6da11bbe0c04bd55903e5a7c60/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b72616b2f6d772e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/krak/mw)

The Mw library is a very flexible framework for converting middleware into handlers. Middleware offer a clean syntax for implementing the [Decorator Pattern](https://en.wikipedia.org/wiki/Decorator_pattern)

```
