Download the PHP package simp/router without Composer
On this page you can find all versions of the php package simp/router. 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 router
Router Library
Overview
This is a simple PHP routing library that allows defining and handling routes easily. It supports various HTTP methods, dynamic parameters, and optional data type specifications.
Features
- Supports GET, POST, PUT, DELETE requests
- Allows route parameters with type enforcement (int, float, bool, double)
- Handles dynamic routing with class-based controllers
- JSON-based response handling
Installation
- Clone the repository or download the source code.
- Install dependencies using Composer:
Usage
Defining Routes
Routes are defined in index.php using the Route class. Example:
Handling Requests
Route handlers should extend RouteEntryController and implement an entry method to handle requests. Example:
Requirements
- PHP 8.0+
- Composer
License
This project is licensed under the MIT License.
All versions of router with dependencies
PHP Build Version
Package Version
Requires
symfony/http-foundation Version
^7.2
symfony/yaml Version ^8.0
ext-http Version *
psr/http-factory Version ^1.1
guzzlehttp/psr7 Version ^2.8
guzzlehttp/guzzle Version ^7.10
nyholm/psr7 Version ^1.8
symfony/psr-http-message-bridge Version ^7.3
symfony/yaml Version ^8.0
ext-http Version *
psr/http-factory Version ^1.1
guzzlehttp/psr7 Version ^2.8
guzzlehttp/guzzle Version ^7.10
nyholm/psr7 Version ^1.8
symfony/psr-http-message-bridge Version ^7.3
The package simp/router contains the following files
Loading the files please wait ...