Registry / web-framework / league-route

league-route

JSON →
library6.2.0phppackagistunverified

Fast routing and dispatch component including PSR-15 middleware, built on top of FastRoute.

composer require league/route
INSTALL
IMPORT
SIG · LEAGUE-ROUTE
L
league-route
web-frameworkphpv6.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Router
use League\Route\Router;

Create a router and dispatch a request.

use League\Route\Router; $router = new Router(); $router->map('GET', '/hello/{name}', function ($request, $args) { return new Zend\Diactoros\Response\HtmlResponse('Hello ' . $args['name']); }); $response = $router->dispatch($request);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
6.2.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
league-route — pip install league-route · libregistry