Download the PHP package wilsonneto-dev/express-router without Composer
On this page you can find all versions of the php package wilsonneto-dev/express-router. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wilsonneto-dev/express-router
More information about wilsonneto-dev/express-router
Files in wilsonneto-dev/express-router
Package express-router
Short Description The simplest router for PHP
License MIT
Informations about the package express-router
Express Router
🎈 The simplest, easiest, and most minimalist way 😃 to create routes in a pure PHP app
Install it in your project:
Use it in your project:
Simple example of creating routes
You will need the rewrite mod enabled and a .htaccess
file as the below:
Example project:
https://github.com/wilsonneto-dev/express-router-example
Package website:
https://wilsonneto-dev.github.io/express-router/
Packagist:
https://packagist.org/packages/wilsonneto-dev/express-router
Request and Response objects
your router callbacks will receive two objects, the request with all the request information; and the response is the object responsible by prepare the response.
And yes, that's all!
Life can be simple sometimes ✨