Download the PHP package sirix/mezzio-radixrouter without Composer
On this page you can find all versions of the php package sirix/mezzio-radixrouter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sirix/mezzio-radixrouter
More information about sirix/mezzio-radixrouter
Files in sirix/mezzio-radixrouter
Package mezzio-radixrouter
Short Description RadixRouter integration for Mezzio
License MIT
Informations about the package mezzio-radixrouter
Mezzio RadixRouter
RadixRouter integration for Mezzio, providing high-performance HTTP routing using a radix tree algorithm.
Installation
Install this package via Composer:
Features
- High-performance routing using a radix tree algorithm
- PSR-7 and PSR-15 compatible
- Supports route parameters and optional parameters
- Route caching for improved performance
- Fully compatible with Mezzio middleware architecture
Usage
Basic Setup
There are two ways to set up RadixRouter in your Mezzio application:
Automatic Configuration (Recommended)
The easiest way to set up RadixRouter is to use the provided ConfigProvider, which automatically registers all necessary dependencies:
This will automatically register the RadixRouter as the default router implementation for your application.
Manual Configuration
Alternatively, you can manually update your dependencies configuration:
Route Configuration
Routes can be defined in your Mezzio application as usual:
Caching Configuration
To enable route caching for improved performance:
Documentation
For more information about routing in Mezzio, please refer to the Mezzio routing documentation.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Credits
- Sirix - Project maintainer
- Wilaak RadixRouter - The underlying radix tree router implementation
- Mezzio - The middleware framework
All versions of mezzio-radixrouter with dependencies
fig/http-message-util Version ^1.1.2
laminas/laminas-stdlib Version ^3.19.0
mezzio/mezzio-router Version ^3.14 || ^4.0.1
psr/container Version ^1.0 || ^2.0
psr/http-message Version ^1.0.1 || ^2.0.0
wilaak/radix-router Version ^2.1