mirror of
https://github.com/WilliamAAK/Route2.git
synced 2025-04-19 15:17:18 +00:00
Docs: Update
This commit is contained in:
parent
3c72d72789
commit
32e6971bc6
@ -3,10 +3,9 @@
|
||||
A simple routing system for PHP web applications.
|
||||
|
||||
### Features:
|
||||
- **Simplicity**: Easily map URLs to specific callback functions.
|
||||
- **Parameters**: Flexible URL handling with parameters (e.g., `/user/$id`).
|
||||
- **Middleware**: Register functions to execute **before** and **after** routes.
|
||||
- **Grouping**: Organize related routes and apply group-specific middleware.
|
||||
- **Parameters**: Flexible URL handling with parameters (e.g, `/user/$id`)
|
||||
- **Middleware**: Register callback functions to execute **before** and **after** route callback functions.
|
||||
- **Groups**: Organize routes under an optional prefix (e.g, `/admin`) and apply group-specific middleware.
|
||||
- **Lightweight**: A single-file, no-frills routing solution with zero dependencies.
|
||||
|
||||
### Example:
|
||||
@ -164,7 +163,7 @@ for ($nbRequests = 0; !$maxRequests || $nbRequests < $maxRequests; ++$nbRequests
|
||||
|
||||
The simplest way to access your routes is to put the file in your folder and run it.
|
||||
|
||||
For example if you request ```http://your.site/yourscript.php/your/route``` the route will be automatically adjust to `/your/route`.
|
||||
For example if you request ```http://your.site/yourscript.php/your/route``` it will automatically adjust to `/your/route`.
|
||||
|
||||
## Rewriting requests
|
||||
|
||||
|
@ -8,10 +8,9 @@ use InvalidArgumentException;
|
||||
* A simple routing system for PHP web applications.
|
||||
*
|
||||
* ### Features:
|
||||
* - **Simplicity**: Easily map URLs to specific callback functions.
|
||||
* - **Parameters**: Flexible URL handling with parameters (e.g., `/user/$id`).
|
||||
* - **Middleware**: Register functions to execute **before** and **after** routes.
|
||||
* - **Grouping**: Organize related routes and apply group-specific middleware.
|
||||
* - **Parameters**: Flexible URL handling with parameters (e.g, `/user/$id`)
|
||||
* - **Middleware**: Register callback functions to execute **before** and **after** route callback functions.
|
||||
* - **Groups**: Organize routes under an optional prefix (e.g, `/admin`) and apply group-specific middleware.
|
||||
* - **Lightweight**: A single-file, no-frills routing solution with zero dependencies.
|
||||
*
|
||||
* ### Example:
|
||||
|
Loading…
x
Reference in New Issue
Block a user