PHP code example of kfreiman / psr-15-validation
1. Go to this page and download the library: Download kfreiman/psr-15-validation library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kfreiman / psr-15-validation example snippets
$dispatcher = new Dispatcher([
(new Middlewares\Validation())
]);
$response = $dispatcher->dispatch(new ServerRequest());