Download the PHP package switon/router without Composer
On this page you can find all versions of the php package switon/router. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download switon/router
More information about switon/router
Files in switon/router
Download switon/router
More information about switon/router
Files in switon/router
Please rate this library. Is it a good library?
Informations about the package router
Switon Router Package
Switon's route matcher for literal and dynamic paths, attribute discovery, prefix-aware matching, and route resolution events.
Highlights
- Attribute-based routing: controllers and actions declare routes in place with
#[RequestMapping]and method mappings. - Prefix-aware discovery: controller prefixes can be derived from names or set explicitly.
- Path mapping rules:
'', relative, absolute, and array paths all map cleanly to routes. - View mappings:
#[ViewGetMapping]and related attributes can add GET views beside write actions. - Fast route lookup: literal routes stay in hash lookups while dynamic ones compile to regex.
- Match visibility:
RouteNotFoundandRouteParamsResolvedexpose misses and parameter resolution.
Installation
Quick Start
Docs: https://docs.switon.dev/latest/router
License
MIT.
All versions of router with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.3
psr/event-dispatcher Version ^1.0
switon/command Version ^1.0
switon/console Version ^1.0
switon/core Version ^1.0
switon/event Version ^1.0
psr/event-dispatcher Version ^1.0
switon/command Version ^1.0
switon/console Version ^1.0
switon/core Version ^1.0
switon/event Version ^1.0
The package switon/router contains the following files
Loading the files please wait ...