FastRoute
FastRoute copied to clipboard
Fast request router for PHP
More info will be coming soon... - [ ] Improve data generation performance - [ ] Generate multiple regexes instead of only 1 (using 2.5k char as limit - according...
Hello, They could accept this PR (#179), it would be very useful for example to create file managers, not forcing to always have a path from the base path. In...
Is there a way to get variables returned in an array instead of individually.. Like so Instead of `$app->get('/nanna/{name}[/{id}[/{product}[/{size}]]]', function($name, $id, $product, $size ) { ` Like so `$app->get('/nanna/{name}[/{id}[/{product}[/{size}]]]', function(array...
# 2.0 Changes and feature proposal ## Preamble @nikic I would love to hear your opinion on this because I really don't see that anyone is maintaining anything here and...
Hi How to get all the routes defined?
I'm preparing CORS middleware for REST API, which is appending list of allowed methods to a [preflight request](https://developer.mozilla.org/en-US/docs/Glossary/Preflight_request) route. As I'm using [Slim framework](slimframework.com) v3, this is not possible append...
The way I am splitting up and loading routes requires me to pass the RouteCollector through to some methods, and I have built a custom RouteCollector that allows me to...
Hello, kinda question: is it possible to define the active route pattern itself, for example: ``` $dispatcher = FastRoute\simpleDispatcher(function(FastRoute\RouteCollector $r) { $r->addRoute('GET', '/user/{id:\d+}', 'get_user_handler'); }); .... $routeInfo = $dispatcher->dispatch($httpMethod, $uri);...
for example: $r->addRoute('GET', '/test', 'handler')->name("test“);