simple-php-router
simple-php-router copied to clipboard
Simple, fast and yet powerful PHP router that is easy to get integrated and in any project. Heavily inspired by the way Laravel handles routing, with both simplicity and expand-ability in mind.
I've been having a ton of these attacks or scans on my website. This is a private subdomain not indexed on google, and every error is logged for debug purposes....
Hi I've looked through the documentation and other issues raised here and I can't find any working way to pass parameters to middleware I'm looking to achieve something like this...
For example: I have exeption occured in file src/pages/main.php. But I'm getting this one instead. I've also tried implementing IExceptionHandler, but the $error variable in handleError function has same exception...
The route does not work properly for projects installed in the subfolder. "x.com/subfolder/myroute" a url like this The subfolder part should be ignored. myroute should be the main route part.
The input()->*() and request()->* will not catch file contents in request. I have tried every possible means to handle uploaded files but it's not present in the request body. I...
The route works correctly but it seems that the data is not sent to my method since it does not let me use the values. Project: https://github.com/LuisEstrada7/prueba-simple-php-router index.php ``` require_once...
route
When specifying the route '/{lang}/' and '/admin/' - the router selects the first match. Route '/admin/' - it completely ignores. How can I fix this behavior? the same behavior is...
As you can see, when I use SimpleRouter::error() in conjunction with Request's setRewriteCallback() method to catch an error route, instead of getting an HTTP status code of 4XX or 5XX,...
It throws an error when there is an unexpected value in the URL. And try catch not working. ``` try { SimpleRouter::start(); } catch (Expception $ex) { echo $ex->getMessage(); //...