Registry / web-framework / zendframework-zend-router

zendframework-zend-router

JSON →
library3.3.0phppackagistunverified

Flexible routing system for HTTP and console applications.

composer require zendframework/zend-router
INSTALL
IMPORT
SIG · ZENDFRAMEWORK-ZEND
Z
zendframework-zend-router
web-frameworkphpv3.3.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 Zend\Router\Http\TreeRouteStack;

Create a router and match a request to a route.

use Zend\Router\Http\TreeRouteStack; $router = new TreeRouteStack(); $router->addRoute('home', [ 'type' => 'Zend\Router\Http\Literal', 'options' => ['route' => '/', 'defaults' => ['controller' => 'IndexController']], ]); $match = $router->match(new Zend\Http\PhpEnvironment\Request());
Debug
Known issues
breakingZend Framework packages are migrated to Laminas; this package is deprecated.
fix
Use laminas/laminas-router instead.
affects: >=3.0.0
Upgrade
Version history
3.3.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
22
Amazon
1
OpenAI (training)
1
Resources
zendframework-zend-router — pip install zendframework-zend-router · libregistry