hofa/lumen-twig

Adds the power of Twig to Lumen

Installs: 37

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/hofa/lumen-twig

v1.0.0 2019-05-12 02:04 UTC

This package is not auto-updated.

Last update: 2025-10-07 10:38:00 UTC


README

lumen support twig template

install

composer require hofa/lumen-twig

bootsrap/app.php

$app->register(LumenTwig\TwigServiceProvider::class);

uses

view('tests/index.twig', ['a' => 1]);
touch resource/view/tests/index.twig

twig global variable

{{ reqeust.input('query', 1)}}
{{ app('hash').make('a123456')}}
{{ session...}} {{ url...}} {{ auth...}}