1. Go to this page and download the library: Download reinanbr/vitruvia 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/ */
reinanbr / vitruvia example snippets
itruvia\Core\Web\Application;
$app = new Application(__DIR__);
$app->get("/", function ($req, $res) {
$res->send("Hello, world!");
});
$app->run();
$app->get("/hello/:name", function ($req, $res) {
$res->send("Hello, {$req->params['name']}!");
});