PHP code example of tuupola / instrument-middleware
1. Go to this page and download the library: Download tuupola/instrument-middleware 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/ */
tuupola / instrument-middleware example snippets
$app->get("/", function ($request, $response, $arguments) {
return $response->write("Here be dragons...\n");
});
$app->get("/hello/{name}", function ($request, $response, $arguments) {
return $response->write("Hello {$arguments['name']}!\n");
});