Download the PHP package nyrodev/php-template-bundle without Composer
On this page you can find all versions of the php package nyrodev/php-template-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nyrodev/php-template-bundle
More information about nyrodev/php-template-bundle
Files in nyrodev/php-template-bundle
Package php-template-bundle
Short Description Symfony Bundle to keep using PHP templates
License MIT
Homepage https://github.com/nyroDev/PhpTemplateBundle
Informations about the package php-template-bundle
PhpTemplateBundle
Symfony Bundle in order to keep using PHP template
This was not tested properly, use with caution
Instalation
Usage
As you did before on Symfony 4, simply use your php template when rendering something. Usage examples :
All helpers extings on Symfony 4 was also ported, like assets
, form
, session
, etc...
It means you can still use them on your PHP templates with $view['helper']->call()
Moreover, the tag templating.helper
is still working.
You can still define your own PHP template helper by simply adding this tag, just like before.
You can also implements the NyroDev\PhpTemplateBundle\Helper\HelperInterface
interface in order to be available from your view using the alias return by getAlias
.
Notes
PHP Form templates does NOT work.
It requires more works and it shouldn't be too much work to rewrite only these templates into Twig.
Many source code comes from the last version 4 of framework bundle. For now, the only changes made on these files have been removing deprecation notices and changing namespaces.