Download the PHP package routing-interop/route without Composer
On this page you can find all versions of the php package routing-interop/route. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package route
routing-interop/route
Installation
Usage
Thougts
-
Most routing libraries use the following route declaration format:
addRoute(
, , ) path
can be a string, a regex, or a custom format. It usually contains all the variable parts or the path, the type constraints.- Each path part is a segment (typical URI language).
- Simple string segments are static, while others are dynamic.
- Other route constraints not contained in
path
:- Host
- Scheme
- Port
- A dynamic segment can be optional and have a default value
- Using a common static prefix for a bunch of routes is very useful
- Declaring a group of routes with the same path but not the same method can be useful
- What to do when no route is matched? Wrong URI, wrong method, ...
It may be useful to add default workflow and responses. - Giving a name to routes seems deprecated. Wait... no, it isn't: how do we generate URIs without names!?
- Content negotiation is not is the scope of routing
- Parameter conversion (from
/post/{slug}
tocontroller(BlogPost $post)
) is out of scope.
All versions of route with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
The package routing-interop/route contains the following files
Loading the files please wait ....