middleman

Dead simple PSR-15 / PSR-7 middleware dispatcher

Downloads
367.7K
Stars
90
Committers
4
middleman - Maintenance release Latest Release

Published by mindplay-dk over 3 years ago

See #24

middleman - Major release

Published by mindplay-dk over 3 years ago

This release removes support for legacy PSR-15 middleware and legacy PSR-11 IOC containers.

This version requires you to use the official, final psr/http-server-middleware and psr/container packages.

Dispatcher::dispatch() has been removed in favor of PSR-15 RequestHandlerInterface::handle(), which is now implemented by Dispatcher - if you were calling this directly, you should switch to the identical PSR-15 standard handle() method.

middleman - Feature release

Published by mindplay-dk over 3 years ago

Dispatcher now implements the PSR-15 standard RequestHandlerInterface, and as such can be directly dispatched by a host or similar PSR-15 "server"-type implementations.

middleman - Maintenance release

Published by mindplay-dk over 3 years ago

Adds support for PHP 8

middleman - Explicit support for legacy and final PSR-15

Published by mindplay-dk over 6 years ago

middleman - Non-critical tweaks

Published by mindplay-dk almost 7 years ago

Corrected dependencies, added tests.

middleman - Minor update

Published by mindplay-dk almost 7 years ago

Changes the dependency on PSR-11 to the final package.

middleman - Major update with support for PSR-15 1.0

Published by mindplay-dk almost 7 years ago

Please refer to UPGRADING.md for an overview of breaking changes.

middleman - patch

Published by mindplay-dk almost 8 years ago

work-around for non-semver breaking change in http-interop

middleman - Major release with support for PSR-15 ^ 0.2

Published by mindplay-dk about 8 years ago

This major release changes middleware support from the traditional, de-facto standard double-pass to the new lambda-style PSR-15 function signatures, as proposed by the draft PSR-15 and current 0.2.0 release of http-interop/http-middleware.

This is a complete BC break - double-pass middleware isn't (and cannot be) supported.

Porting your middleware components should be fairly easy, once you get the hang of it. See UPGRADING.md for more details and an example of upgrading middleware from the de-facto standard to PSR-15.

Package Rankings
Top 2.1% on Packagist.org
Badges
Extracted from project README
PHP Version CI Code Coverage