Skip to content

Welcome to Antares

A modern, lightweight PHP framework designed for building fast and scalable APIs.

  • Dependency Injection - Powerful autowiring container with constructor injection, singletons, and contextual bindings.
  • Attribute Routing - Define routes using PHP 8 attributes directly on controller methods.
  • Validation & DTOs - Type-safe request validation with automatic DTO hydration.
  • PSR Compliant - Built on PSR-7 HTTP messages and PSR-15 middleware.
use Antares\Router\Attributes\Get;
class UserController
{
#[Get('/users/{id}')]
public function show(int $id): array
{
return ['id' => $id, 'name' => 'John'];
}
}