digital-marketing-framework / template-engine-twig
Anyrel - Template Engine - Twig
Package info
github.com/digital-marketing-framework/template-engine-twig
pkg:composer/digital-marketing-framework/template-engine-twig
3.0.1
2026-01-18 20:15 UTC
Requires
- php: ^8.2
- digital-marketing-framework/core: ^3.0
- twig/twig: ^3.0
Requires (Dev)
README
Use Twig as Default Template Engine
Manual
Data access
It is possible to output the data directly with the field name. Example:
Hello {{ firstname }} {{ lastname }},
Thank you for your message!
Furthermore, we have an array in which all fields have been stored. Here is an example of how to access the array:
{% for key,value in all_values %}
{{ key }}: {{ value }}
{% endfor %}