This package contains a set of Twig extensions and utility class to ease the use of Twig templates in Mouf.
Installs: 340 279
Open Issues: 4
- php: ^8.0
- mouf/html.htmlelement: ~2.0
- mouf/utils.value.value-interface: ^1
- psr/container: ^1
- thecodingmachine/funky: ^1
- twig/twig: ^2
What is this package?
This package contains a set of classes to make Twig easier to use inside Mouf.
It contains a set of Twig extensions that can be used to add useful features in Mouf.
HtmlElementInterface evaluation in the Twig template, or I18n using Fine, in the template.
Twig_Environment is overloaded in order to be easier to configure from Mouf (the constructor proposes a set of arguments rather
than a simple array).
Also, this package contains an installer that will create a
Twig_Environment instance you can directly use.
This package is part of Mouf (http://mouf-php.com), an effort to ensure good developing practices by providing a graphical dependency injection framework.