Registry / web-framework / laminas-laminas-router

laminas-laminas-router

JSON →
library3.18.0phppackagistunverified

Flexible routing system for HTTP and console applications

composer require laminas/laminas-router
INSTALL
IMPORT
SIG · LAMINAS-LAMINAS-RO
L
laminas-laminas-router
web-frameworkphpv3.18.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.

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.

Agent activity
7 hits · last 30 days
node
6
Resources
laminas-laminas-router — pip install laminas-laminas-router · libregistry