ARouter  0.1.0
Annotation based router for your projects
Middleware

PSR-15 middleware

You can use this router as PSR-15 middleware.

Example with https://github.com/procurios/middleware-dispatcher :

$dispatcher = (new Dispatcher())
->withMiddleware(new RoutingMiddleware($router));
$response = $dispatcher->process($request);