A server-side adapter for using Inertia.js with Symfony 5 and 6, enabling single-page app experiences.
Inertia.js Symfony Adapter is a server-side package that integrates Inertia.js with Symfony 5 and 6, enabling developers to build single-page applications using modern frontend frameworks like Vue, React, or Svelte. It allows Symfony controllers to render Inertia responses directly, eliminating the need for a separate API layer and simplifying full-stack development. The adapter provides features like data sharing, lazy props, and server-side rendering support.
Symfony developers who want to build modern, reactive single-page applications without managing a separate API or dealing with complex frontend routing. It's ideal for teams already using Symfony and looking to adopt Inertia.js for a smoother full-stack workflow.
Developers choose this adapter because it brings the Inertia.js experience to Symfony, reducing development overhead by integrating backend and frontend seamlessly. It offers a familiar Symfony service pattern, supports multiple frontend frameworks, and includes advanced features like SSR and lazy data loading, making it a robust alternative to building custom API-driven SPAs.
Inertia.js server-side adapter for Symfony
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Provides an InertiaInterface service for controllers to render responses directly, making backend integration straightforward as shown in the controller examples using dependency injection.
Supports Vue, React, and Svelte via Inertia.js adapters, with detailed Webpack Encore configuration examples in the README for each framework.
Includes share method for global data and lazy props for efficient loading, demonstrated in the event subscriber and controller examples with callable support.
Offers configuration guides for server-side rendering with a separate Node.js build, enhancing app performance and SEO, as outlined in the SSR setup section.
The README explicitly warns that the project is looking for a new owner and is unmaintained, posing risks for bug fixes, security updates, and compatibility with future Symfony or Inertia.js versions.
Enabling server-side rendering requires creating a separate Webpack config and running a Node.js service, adding operational overhead and complexity compared to simpler setups.
Primary configuration examples are for Webpack Encore; while a Vite template exists, it's community-driven and not officially documented in the core README, limiting alternatives.