Registry / web-framework / altorouter-altorouter

altorouter-altorouter

JSON →
library2.0.3phppackagistunverified

A lightning fast router for PHP with support for dynamic routing and reverse matching.

composer require altorouter/altorouter
INSTALL
IMPORT
SIG · ALTOROUTER-ALTOROU
A
altorouter-altorouter
web-frameworkphpv2.0.3
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.

AltoRouter
use AltoRouter;

Define and match a simple route.

use AltoRouter; $router = new AltoRouter(); $router->map('GET', '/users/[i:id]', function($id) { echo "User $id"; }); $match = $router->match();
Debug
Known issues
breakingVersion 2.x has breaking changes from 1.x, including method signatures.
fix
Check the upgrade guide when migrating from 1.x.
affects: >=2.0.0
Upgrade
Version history
2.0.3latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
15
Amazon
1
OpenAI (training)
1
Resources
altorouter-altorouter — pip install altorouter-altorouter · libregistry