chani / safi-view-twig
Twig view engine adapter for the Safi Microframework.
v0.1.3
2026-07-25 15:42 UTC
Requires
- php: ^8.5
- chani/safi-core: ^0.1.0
- twig/intl-extra: ^3.15
- twig/twig: ^3.15
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.64
- phpstan/phpstan: ^2.0
- phpunit/phpunit: ^11.0
- rector/rector: ^2.0
- vimeo/psalm: ^6.0
README
Twig 3 view engine integration for the Safi Microframework. Implements Safi\Core\Contracts\ViewEngineInterface and provides deferred global variable evaluation (µADR-027).
Features
- Deferred Globals (µADR-027): Global view context closures are resolved lazily on template render.
- Namespace Registration: Support for isolated module template paths (
@Module/template.twig).
License
Distributed under the MIT License. Author: Jean Bruenn