Registry / web-framework / yiisoft-yii2-twig

yiisoft-yii2-twig

JSON →
library2.5.1phppackagistunverified

The Twig integration for the Yii framework, allowing use of Twig templates in Yii2 applications.

composer require yiisoft/yii2-twig
INSTALL
IMPORT
SIG · YIISOFT-YII2-TWIG
Y
yiisoft-yii2-twig
web-frameworkphpv2.5.1
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.

ViewRenderer
use yii\twig\ViewRenderer;

Rendering a Twig template with the Yii2 Twig renderer.

use yii\twig\ViewRenderer; $renderer = new ViewRenderer(); $renderer->twig->render('index.twig', ['name' => 'World']);
Debug
Known issues
gotchaRequires Yii2 framework to be installed.
fix
Ensure yiisoft/yii2 is installed and configured.
affects: >=2.0.0
Upgrade
Version history
2.5.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
24
OpenAI (training)
1
Resources
yiisoft-yii2-twig — pip install yiisoft-yii2-twig · libregistry