router
router copied to clipboard
A lightweight and simple object oriented PHP Router
Hi! I'm doing something like this init stuff $router->before stuff $router->match stuff $router->run(afterRouterMiddleware()); The route handling functions are setting some variables in static or singleton objects and everything runs fine...
public function trigger404($match = null) same function variable $param is not being used: $params = array_map(function ($match, $index) use ($matches)
Hi, I wanted to know if it's possible to have default language on root / instead of /lang. I.e: http://multilingual.com/ instead of http://multilingual.com/en http://multilingual.com/blog instead of http://multilingual/en/blog Thanks
Hi, on PHP FPM (in my case PHP FPM 7.4), the `getallheaders()` function returns an array with other keys than on PHP for Apache. This causes the `PUT`, `DELETE`, or...
How Do we use with Swoole ? I believe it's easier with nGinX + PHP-FPM BUT Swoole ?
I would like to call to the `loadDashboard()` method in `\App\Http\Controllers\DashboardController` class but failed. The program are somethings like: ```php use Common\DatabaseConnection; use Bramus\Router\Router; use Opis\Database\Database; use App\Http\Controllers\DashboardController; $router =...