quickestphp / router
Simple and easy to use routing system.
Requires
- php: ^7.0.0
This package is auto-updated.
Last update: 2025-06-28 06:48:00 UTC
README
This router package is easy, fast and extremely uncomplicated. It is not made for a specific FRAMEWORK, you can add it to any of your projects. Create and manage your routes in minutes!
How to install it
First create the folder where your application will live and then inside of it use the command for requiring the package or define in composer.json file, IT IS NECESSARY to have COMPOSER in order to INSTALL this package, see bellow:
$ composer require quickestphp/router
or add it to composer.json
"quickestphp/router": "^1.0"
How to use it
Setting up Quickest router is very easy
In order to get a Quickest Router instance you have
$router = new Quickest\Router;
After it is necessary to define the routes and its handlers, the SUPPORTED VERBS ARE:
- GET : to navigate between pages and read records
- POST : is used for inserting records
- PUT / PATCH : this verb is responsable for updating
- DELETE : used for removing records
- GROUP : groups a collection of routes under a path
To actually execute the routing system, after all definded routes is mandatory to call the dispatch method at Router::dispatch()
$router->dispatch();
Contributing
Please see CONTRIBUTING for details.
Support
Security: If you discover any security related issues, please email support@quickestphp.org instead of using the issue tracker.
Thank you
Credits
- Jonatan Flores (Developer)
- All Contributors (This Rock)
License
The MIT License (MIT). Please see License File for more information.