p-router
p-router copied to clipboard
A simple, lightweight, and powerful PHP Router with rich features like Middleware and Controllers. Heavily inspired by the way Laravel handles routing.
When running the commands "composer controller" for instance, it fails with the following error code: Script cd vendor/devamirul/p-router/src/CLI && php createController.php && cd - handling the controller event returned with...
For convenience, some commonly used regular expression patterns have helper methods that allow you to quickly add pattern constraints to your routes: example : ```php $router->get('/user/:id/:name', function () { //...