mirror of
https://github.com/WilliamAAK/Route2.git
synced 2025-04-19 21:17:19 +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.
|
A simple routing system for PHP web applications.
|
||||||
|
|
||||||
### Features:
|
### Features:
|
||||||
- **Simplicity**: Easily map URLs to specific callback functions.
|
- **Parameters**: Flexible URL handling with parameters (e.g, `/user/$id`)
|
||||||
- **Parameters**: Flexible URL handling with parameters (e.g., `/user/$id`).
|
- **Middleware**: Register callback functions to execute **before** and **after** route callback functions.
|
||||||
- **Middleware**: Register functions to execute **before** and **after** routes.
|
- **Groups**: Organize routes under an optional prefix (e.g, `/admin`) and apply group-specific middleware.
|
||||||
- **Grouping**: Organize related routes and apply group-specific middleware.
|
|
||||||
- **Lightweight**: A single-file, no-frills routing solution with zero dependencies.
|
- **Lightweight**: A single-file, no-frills routing solution with zero dependencies.
|
||||||
|
|
||||||
### Example:
|
### 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.
|
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
|
## Rewriting requests
|
||||||
|
|
||||||
|
@ -8,10 +8,9 @@ use InvalidArgumentException;
|
|||||||
* A simple routing system for PHP web applications.
|
* A simple routing system for PHP web applications.
|
||||||
*
|
*
|
||||||
* ### Features:
|
* ### Features:
|
||||||
* - **Simplicity**: Easily map URLs to specific callback functions.
|
* - **Parameters**: Flexible URL handling with parameters (e.g, `/user/$id`)
|
||||||
* - **Parameters**: Flexible URL handling with parameters (e.g., `/user/$id`).
|
* - **Middleware**: Register callback functions to execute **before** and **after** route callback functions.
|
||||||
* - **Middleware**: Register functions to execute **before** and **after** routes.
|
* - **Groups**: Organize routes under an optional prefix (e.g, `/admin`) and apply group-specific middleware.
|
||||||
* - **Grouping**: Organize related routes and apply group-specific middleware.
|
|
||||||
* - **Lightweight**: A single-file, no-frills routing solution with zero dependencies.
|
* - **Lightweight**: A single-file, no-frills routing solution with zero dependencies.
|
||||||
*
|
*
|
||||||
* ### Example:
|
* ### Example:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user