Download the PHP package koushik01/phrouter without Composer
On this page you can find all versions of the php package koushik01/phrouter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download koushik01/phrouter
More information about koushik01/phrouter
Files in koushik01/phrouter
Package phrouter
Short Description simple and easy to use php router and template engine library inspired from Node and Express JS routing and templating system
License MIT
Informations about the package phrouter
PHRouter - PHP Routing Library
PHRouter is a simple yet powerful PHP routing library that helps you manage and handle HTTP requests in your web application. It allows you to define routes, apply middleware, and execute custom actions based on the requested URL and HTTP method.
Features
- Define and handle routes for various HTTP methods (GET, POST, PUT, DELETE, etc.).
- Middleware support for common tasks like authentication, logging, and input validation.
- Group routes together and apply middleware to route groups.
- Route parameters with constraints, making it easy to validate and process dynamic parts of URLs.
- Clean and flexible API for building RESTful APIs or web applications.
Installation
-
Clone the repository:
-
Include the
Router.php
andResponse.php
files in your PHP project. -
Create an instance of the
Router
class and define your routes. - Start the router to handle incoming requests.
Usage
Here's a basic example of how to use PHRouter:
Contributing
If you'd like to contribute to this project, please follow these guidelines:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your fork.
- Submit a pull request to the main repository.
License
This project is licensed under The Unlicense
License - see the LICENSE file for details.
Acknowledgments
- PHRouter is inspired by various PHP routing libraries and frameworks.
- Special thanks to the PHP community for their contributions and support.