simple-php-router icon indicating copy to clipboard operation
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.

Results 60 simple-php-router issues
Sort by recently updated
recently updated
newest added

fixed json_encode 2nd parameter int flag issue in Response fixed InputItem offsetGet param type and return type for the json in the Response.php file ``` public function json($value, ?int $options...

Change "/foo/%D8%AA%D8%B3%D8%AA/" to "/foo/تست/" to work regex with persian/arabic in route .

**I'm trying to make it show full url (for example: https://site.com/article/33) instead of root/article/33 but the Router::getUrl() returns an object instead of string and you know...** ``` $out = url('search',null,...

Hi, I am currently trying to integrate the router into my existing system that is getting on in years. Unfortunately, I am currently failing to intercept the CSRF TokenMismatchException. Neither...

I have a simple PHP site I was modernizing (mostly just to see if I could). I found this routing library that seemed good and I wanted to replace the...

SimpleRouter::error(function(Request $request, \Exception $exception) { $request->setRewriteCallback('ErrorController@notFound'); });

$route->setPrefix('v1');

Deprecated: Return type of Pecee\Http\Input\InputItem::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in C:\xampp\htdocs\apigastosreales\vendor\pecee\simple-router\src\Pecee\Http\Input\InputItem.php on line 84...

Hello, this is the fix for the issue #613. ### The issue The problem was that the route `/κκκκ` was not accessible. After some debugging, I found out that the...

Hello @skipperbent, this PR fixes the issue with php 8.1 reported by @AlexanderSchaller in #605. `string 'strtolower(): Passing null to parameter #1 ($string) of type string is deprecated'` The issue...