Download the PHP package vilnis/easy-route without Composer
On this page you can find all versions of the php package vilnis/easy-route. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package easy-route
EasyRoute
EasyRoute is a lightweight PHP router for handling HTTP requests and routing them to the appropriate controller methods.
Features
- Simple and easy-to-use routing mechanism
- Supports dynamic routes with parameters
- Compatible with PHP 8.1.0 or later
Installation
You can install EasyRoute via Composer. Run the following command in your terminal:
Usage
Basic Usage
Routes with Type Markers (/d and /t):
-
/users/{id/d}/{text/t}
: Expects two parameters:{id/d}
: Requires a digit (numeric value) for theid
.{text/t}
: Expects alphabetic text.
/users/{id/d}
: Expects a single parameter:{id/d}
: Requires a digit (numeric value) for theid
.
Routes without Type Markers:
/products/{category}
: This route includes{category}
parameter without specific type markers{category/t}
or{category/d}
.{category}
: Accepts various types of parameters (digits, alphabetic characters, etc.).
All versions of easy-route with dependencies
PHP Build Version
Package Version
No informations.
The package vilnis/easy-route contains the following files
Loading the files please wait ....