Basic Router is a very basic and small Router class builded in PHP.
require 'router.class.php';$router->newPage('Hello World', 'hello-world', function(){
echo 'Hello World!';
});$page = $router->getContent($_GET['page'], '%title% « MyWebPage');<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title><?php echo $page['title'] ?></title>
</head>
<body>
<ul>
<?php foreach($router->getMenu('index.php', '?page=%slug%') as $url => $name): ?>
<li><a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Cspan+class%3D"pl-ent"><?php echo $url ?>"><?php echo $name ?></a></li>
<?php endforeach ?>
</ul>
<p><?php $page['content']() ?></p>
</body>
</html>