smrtr / haltorouter
A lightning fast HTTP router for PHP
Installs: 1 266
Dependents: 1
Suggesters: 0
Security: 0
Stars: 4
Watchers: 3
Forks: 0
Open Issues: 2
Requires
- php: >=5.3.0
Requires (Dev)
- phpunit/phpunit: 3.7.20
This package is not auto-updated.
Last update: 2024-12-18 13:45:13 UTC
README
HaltoRouter is a small but powerful routing class for PHP 5.3+. HaltoRouter is a hard fork of AltoRouter with the basepath functionality stripped out and hostgroup functionality baked in.
- Dynamic routing with named parameters
- Reversed routing (url generation)
- Host matching via flexible hostgroups
- Flexible regular expression routing (inspired by Sinatra)
Tutorial
There are usage examples in the tests.