simplePHPRouter icon indicating copy to clipboard operation
simplePHPRouter copied to clipboard

This is a simple and small single class PHP router that can handel the whole url routing for your project.

Results 6 simplePHPRouter issues
Sort by recently updated
recently updated
newest added

Looked at the examples, and reading the php docs about [call_user_func_array](https://www.php.net/manual/en/function.call-user-func-array.php) i was missing the example, how it can be used with a pre-defined function, including parameters. I would suggest...

Hi, my project has the main folder with index.php file, then I would like to use the api subdirectory with an other index.php in order to manage the different routes...

` // www.webpage.com/component/blog/... Route::add("/component/(.*)", function($urlComponent){ echo $urlComponent; // resolt ist blog }); // www.webpage.com/component/blog/option/list // this link will call first routh Route::add("/component/(.*)/option/(.*)", function($urlComponent, $urlOption){ echo $urlComponent . " and "...

Hi, On a particular project, i'm using your library on the root of the domain, everything works fine. But now, they install a folder ( ex: /abc/ ) that doesn't...

I am making a Request Feedback system, and I have a uri like this: `https://requests.steadfastinnovations.com/dev/idea/get-requesttrak-up!` It's acting as that isn't found. I haven't messed with Regex. How would I allow...

Hi! What if I need to wrap one route into another? Let's say based on the request? Is that possible without moving the implied code to a function and call...