Skip to content

hofa/lumenTwig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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...}}

About

lumen使用twig模版

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages