A validation repository for PSR-15 middleware packages
Description of the middleware
- PHP >= 5.6
- A PSR-7 http mesage implementation (Diactoros, Guzzle, Slim, etc...)
- A PSR-15 middleware dispatcher
This package is installable and autoloadable via Composer as kfreiman/psr-15-validation.
composer require kfreiman/psr-15-validation
For compatible with
http-interop/http-middleware version less than
0.5 use versions tagged in 0.x
composer require kfreiman/psr-15-validation "^0.1"
$dispatcher = new Dispatcher([ (new Middlewares\Validation()) ]); $response = $dispatcher->dispatch(new ServerRequest());
The MIT License (MIT). Please see LICENSE for more information.