Skip to content

Routing class for a private testing unit. WIP

Notifications You must be signed in to change notification settings

Anddrw/RouterComponent

 
 

Repository files navigation

 $router = new Router();
 
 // map homepage
 $router->map( 'GET', '/', function() {
     require __DIR__ . '/views/home.php';
 });
 
 // map users details page
 $router->map( 'GET|POST', '/users/[i:id]/', function( $id ) {
   $user = .....
   require __DIR__ . '/views/user/details.php';
 });

About

Routing class for a private testing unit. WIP

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%