Download the PHP package raxos/router without Composer
On this page you can find all versions of the php package raxos/router. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package router
Short Description A fast and simple router, built with php attributes.
License MIT
Informations about the package router
Raxos Router
Map PHP controller attributes to HTTP routes, with dependency injection and middleware.
Documentation | Packagist | Raxos
- Static and dynamic routes with typed path parameters.
- Query, header, request-model and relation mapping attributes.
- Nested controllers, validation, middleware and configurable responses.
- CORS preflight handling and mappings that can be reused across router instances.
Installation
Requires PHP 8.5 or later. Enable the ctype, fileinfo, json, simplexml PHP extensions. Composer checks the remaining package and extension dependencies declared in composer.json.
Usage
Path parameters use $name, matching the controller method parameter. Use HttpRequest::createFromGlobals() for incoming web requests. CORS preflight runs middleware and reports allowed methods without executing the target action; explicit OPTIONS handlers still run normally.
Documentation
Testing
Run this library's Pest suite from the Raxos workspace:
See Testing Raxos for PHP extensions, integration services and coverage commands. The library's Tests workflow also runs in GitHub Actions.
License
MIT. Copyright (c) 2017 - present Bas Milius.
See building route urls for the optional APIs and their lifetime or transport guarantees.
All versions of router with dependencies
ext-fileinfo Version *
ext-json Version *
ext-simplexml Version *
jetbrains/phpstorm-attributes Version ^1.2
php Version >=8.5
raxos/collection Version ^3.2
raxos/container Version ^3.2
raxos/contract Version ^3.2
raxos/error Version ^3.2
raxos/foundation Version ^3.2
raxos/http Version ^3.2