PHP code example of tuum / respond
1. Go to this page and download the library: Download tuum/respond 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/ */
tuum / respond example snippets
$app->add('/',
function (ServerRequestInterface $request, ResponseInterface $response) use ($responder) {
return $responder->view($request, $response)
->setSuccess('welcome!')
->render('index');
});