How to Use PHP instead of Twig for TemplatesEdit this page
Warning: You are browsing the documentation for Symfony 6.0, which is no longer maintained.
Read the updated version of this page for Symfony 6.3 (the current stable version).
Starting from Symfony 5.0, PHP templates are no longer supported. Use Twig instead to create your templates.