Download the PHP package oladesoftware/router without Composer
On this page you can find all versions of the php package oladesoftware/router. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download oladesoftware/router
More information about oladesoftware/router
Files in oladesoftware/router
Package router
Short Description A lightweight router written in PHP
License MIT
Homepage https://github.com/oladesoftware/router/blob/main/README.md
Informations about the package router
PHP Router
A simple lightweight router implementation for handling HTTP routes written in PHP. This class allows you to define routes, group them, add middleware, and handle requests based on defined routes.
Table of Contents
- Features
- Installation
- Usage
- License
- Contributing
- Contributors
- Author
Features
- Singleton Pattern: Ensures a single instance of the router.
- Route Definition: Add individual routes with HTTP methods, URI paths, and targets (controllers or closures).
- Route Grouping: Group multiple routes under a common base path.
- Middleware Support: Assign middleware to routes for pre-processing.
- Named Routes: Name your routes for easier route generation.
- Dynamic Route Matching: Match incoming requests to defined routes and extract parameters.
- Route Execution: Execute the target action of matched routes.
Installation
-
Via Composer (Recommended):
- Manual Installation:
Download the router class file and include it in your project.
Usage
For detailed usage instructions, please refer to the Usage Documentation.
License
This project is licensed under the MIT License. See the License file for details.
Contributing
Contributions are welcome! Feel free to submit issues or pull requests.
Support
For support, please open an issue on the GitHub repository.