charm / router
A very fast, tiny single file router implementation. Compatible with PSR Middlware. Takes you from /users/{id:\d+} to `User::profile($id)`. Also in reverse: `$router->url([User::class, 'profile'], 123)` gives you the URL.
0.0.9
2021-09-06 10:20 UTC
Requires
- charm/error: ^0
- psr/http-server-middleware: ^1.0
- psr/log: ^1.0