ideiasinsolitas/deck-router

There is no license information available for the latest version (dev-master) of this package.

PHP Router

Maintainers

Package info

github.com/ideiasinsolitas/router

pkg:composer/ideiasinsolitas/deck-router

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-master 2015-07-06 02:22 UTC

This package is not auto-updated.

Last update: 2026-04-01 15:21:43 UTC


README

Simple front controller implementation

$uri = $_SERVER['REQUEST_URI'];
$routes = array(/* parsed from json */);

$router = new Router($routes);
$dispatcher = new Dispatcher();

$route = $router->route($uri);
$dispatcher->dispatch($route);