Registry / web-framework / slim-twig-view

slim-twig-view

JSON →
library3.4.1phppackagistunverified

Slim Framework 4 view helper built on top of the Twig 3 templating component

composer require slim/twig-view
INSTALL
IMPORT
SIG · SLIM-TWIG-VIEW
S
slim-twig-view
web-frameworkphpv3.4.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.

Twig
use Slim\Views\Twig;

Render a Twig template in a Slim route

use Slim\Views\Twig; $twig = Twig::create('/path/to/templates'); $app->get('/hello/{name}', function ($request, $response, $args) use ($twig) { return $twig->render($response, 'hello.twig', $args); });
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.4.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
slim-twig-view — pip install slim-twig-view · libregistry