Norvica [Pathfinder]

Lean and fast PHP router

Get Started →

Define and Match Routes

Provides a flexible way to define and match routes in your PHP projects.

$router = new Router();

$router->route('POST', '/orders', [OrderController::class, 'post']);
$router->route('GET', '/orders/{id}', [OrderController::class, 'get']);

$request = ServerRequest::fromGlobals();

$route = $router->match($request);

Learn more →