hofa/lumen-twig
lumenTwig
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...}}
Related Packages
nilportugues/laravel5-json-api-dingo
Laravel5 JSONAPI and Dingo together to build APIs fast
1,498
30
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| v1.0.0 | >=5.3.0 | MIT |