Registry / utility / twig-twig

twig-twig

JSON →
library3.23.0phppackagistunverified

Twig, the flexible, fast, and secure template language for PHP

composer require twig/twig
INSTALL
IMPORT
SIG · TWIG-TWIG
T
twig-twig
utilityphpv3.23.0
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.

Environment
use Twig\Environment;

Render a template with Twig.

use Twig\Environment; use Twig\Loader\FilesystemLoader; $loader = new FilesystemLoader('/path/to/templates'); $twig = new Environment($loader); echo $twig->render('index.html', ['name' => 'World']);
Debug
Known issues
gotchaAutoescaping is enabled by default; may double-escape raw HTML
fix
Use the raw filter or disable autoescape for specific blocks
affects: >=1.0
Upgrade
Version history
3.23.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
twig-twig — pip install twig-twig · libregistry