dev-master
9999999-devA routing library.
The Requires
- php >=5.5.0
- air-php/http ~0.1
- phpunit/phpunit ~5.0
Wallogit.com
2017 © Pedro Peláez
A routing library.
The routing library includes classes for handling web application routing., (*2)
Installation via Composer is recommended., (*3)
"require": {
"air-php/routing": "dev-master"
}
The Route object represents an application route. It includes:, (*4)
The Router object is responsible for routing a request. It's configured with one or more Route objects., (*5)
The route() method takes a Request object (compatible with Air's request interface) and returns a ResolvedRoute. The method itself is abstract, allowing you to use routing logic of your choice., (*6)
A ResolvedRequest object represents a request which has been resolved by a Router object., (*7)
It includes the original Request and Route objects, along with the URI parameters that were matched during routing., (*8)
A routing library.