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.
TreeRouteStack
✓ use Laminas\Router\Http\TreeRouteStack;
Creates a router with a literal route and attempts to match a request.
use Laminas\Router\Http\TreeRouteStack;
$router = new TreeRouteStack();
$router->addRoute('home', [
'type' => 'Literal',
'options' => [
'route' => '/',
'defaults' => [
'controller' => 'IndexController',
'action' => 'index',
],
],
]);
$match = $router->match(new Laminas\Http\Request());
Debug
Known issues
No known issues recorded.
Upgrade
Version history
3.18.0latest on Packagist
Audit
Dependencies
No dependency data recorded yet.