Skip to content

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.

Terminal window
composer require fatjon-lleshi/antares-router
  • 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
AttributeHTTP Method
#[Get]GET
#[Post]POST
#[Put]PUT
#[Patch]PATCH
#[Delete]DELETE