Skip to content
John Aldrich Bernardo edited this page Feb 12, 2018 · 2 revisions

Creating a new router

Instantiating a Calf Router is easy as 1, 2, 3

<?php

require("./vendor/autoload.php");

use \Calf\HTTP\Router as Router;

$router = new Router();

and so running it.

<?php

$response = $router->dispatch();
Clone this wiki locally