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