kfreiman / psr-15-validation
A validation repository for PSR-15 middleware packages
v1.7
2017-11-23 11:01 UTC
Requires
- php: ^7.0
- beberlei/assert: ^2.7
- http-interop/http-middleware: ^0.4.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.0
- middlewares/utils: ^0.11.1
- phpunit/phpunit: ^5.5 || ^6.0
- squizlabs/php_codesniffer: ^3.0
- zendframework/zend-diactoros: ^1.3
README
Description of the middleware
Requirements
- PHP >= 5.6
- A PSR-7 http mesage implementation (Diactoros, Guzzle, Slim, etc...)
- A PSR-15 middleware dispatcher
Installation
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"
Example
$dispatcher = new Dispatcher([ (new Middlewares\Validation()) ]); $response = $dispatcher->dispatch(new ServerRequest());
Options
option1()
Option description
option2($arg)
Option description
Please see CHANGELOG for more information about recent changes and CONTRIBUTING for contributing details.
The MIT License (MIT). Please see LICENSE for more information.