Docs: Update

This commit is contained in:
William 2025-04-16 18:26:02 +02:00
parent 3c72d72789
commit 32e6971bc6
2 changed files with 7 additions and 9 deletions

View File

@ -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

View File

@ -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: