PHP code example of izyanzz / routerphp
1. Go to this page and download the library: Download izyanzz/routerphp 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/ */
izyanzz / routerphp example snippets
zyanzZ\Router;
$route = new Router();
// Get Method
$route->get("/", function() {
echo "Hello, World!";
});
// Post Method
$route->post("/", function() {
echo "Hello, World!";
});
$route->run();