Frontmatter

Guides

Astro to Symfony - Twig templates and controller contracts

Build your UI in Astro, hand it off as Twig templates for Symfony. These guides cover the Astro-to-Twig mapping, controller variable contracts, and the full integration pattern — from component props to Symfony-ready templates.

The Symfony developer needs three things from the frontend handoff: the Twig templates, the variable names each template expects, and the structure of the data passed from the controller. Start from the Twig mapping guide, then the Symfony product page.