Router Overview
antares-router provides PHP attribute-based routing built on top of nikic/fast-route. It can be used standalone or as part of the Antares framework.
composer require fatjon-lleshi/antares-routerFeatures
Section titled “Features”- Route definition via PHP attributes (
#[Get],#[Post],#[Put],#[Patch],#[Delete]) - Custom HTTP status codes per route
- Route parameter extraction
- Route caching for production
- Config-based routing (array or YAML) as an alternative to attributes
Available Attributes
Section titled “Available Attributes”| Attribute | HTTP Method |
|---|---|
#[Get] | GET |
#[Post] | POST |
#[Put] | PUT |
#[Patch] | PATCH |
#[Delete] | DELETE |