PHP code example of middlewares / skeleton
1. Go to this page and download the library: Download middlewares/skeleton 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/ */
middlewares / skeleton example snippets
$dispatcher = new Dispatcher([
(new Middlewares\Skeleton())
->option1()
->option2($value)
]);
$response = $dispatcher->dispatch(new ServerRequest());