Registry / utility / symfony-templating

symfony-templating

JSON →
library6.4.24phppackagistunverified

Provides all the tools needed to build any kind of template system.

composer require symfony/templating
INSTALL
IMPORT
SIG · SYMFONY-TEMPLATING
S
symfony-templating
utilityphpv6.4.24
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PhpEngine
use Symfony\Component\Templating\PhpEngine;

Render a PHP template using the Symfony Templating component.

<?php use Symfony\Component\Templating\PhpEngine; use Symfony\Component\Templating\TemplateNameParser; use Symfony\Component\Templating\Loader\FilesystemLoader; $loader = new FilesystemLoader('/path/to/templates/%name%'); $engine = new PhpEngine(new TemplateNameParser(), $loader); echo $engine->render('hello.php', ['name' => 'World']);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
6.4.24latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
symfony-templating — pip install symfony-templating · libregistry