Skip to content

Introduction

Antares is a lightweight, API-focused PHP framework built around explicitness, type safety, and contract-first design.

It provides everything you need to build a modern JSON API — a DI container, attribute-based routing, DTO hydration & validation, Response serialization, a middleware pipeline,

And auto-generated OpenAPI docs — with zero magic and no hidden conventions.

  • Explicit over implicit. Every request and response is typed. Routes are defined where you can see them — attributes, array config, or YAML.
  • Type-safe by default. PHP 8.2+ readonly DTOs, strict hydration, and reflection-based resolution throughout.
  • Composable packages. Each concern lives in its own Composer package. Use the full framework or pull in only what you need.
  • No configuration tax. Route caching and cache invalidation in Production, bridge auto-discovery
  • Zero bootstrap overhead. Built for worker runtimes — Swoole and FrankenPHP keep the app alive between requests.
  • *Composable. Use the full framework or pull in just the container, router, or validation package independently.
  • OpenAPI included. You define the contract — typed requests in, typed responses out. The docs write themselves.
PackageComposer nameDescription
corefatjon-lleshi/antaresApplication boot, Dispatcher, Pipeline, ErrorHandler, OpenAPI
containerfatjon-lleshi/antares-containerReflection-based autowiring DI container
routerfatjon-lleshi/antares-routerAttribute-based routing on top of nikic/fast-route
validationfatjon-lleshi/antares-validationDTO hydration + attribute-driven validation
bridges/monologfatjon-lleshi/antares-monolog-bridgePSR-3 logger via Monolog
bridges/eloquentfatjon-lleshi/antares-eloquent-bridgeEloquent ORM integration
  • PHP 8.2+