contao-community-alliance / contao-twig
Twig integration for Contao OpenSource CMS
Package info
github.com/contao-community-alliance/twig
Type:contao-module
pkg:composer/contao-community-alliance/contao-twig
Requires
- php: >=5.3
- contao-community-alliance/composer-plugin: ~2.0
- contao-community-alliance/event-dispatcher: ~1.0
- contao/core: ~3.2
- twig/twig: ~1.0
Requires (Dev)
- phpcq/all-tasks: ~1.0
Suggests
None
Provides
None
Conflicts
None
Replaces
- bit3/contao-twig: 1.12.1
- contao-legacy/twig: 1.12.1
This package is auto-updated.
Last update: 2026-09-06 13:56:38 UTC
README
This module provide twig support for Contao.
To use twig instead of the contao engine, just use the TwigFrontendTemplate or TwigBackendTemplate class.
For content elements, you can use the TwigContentElement class,
and for modules the TwigModule class. These basic classes allready uses the Twig*Template classes.
You have to suffix your templates with .twig, look at the examples in the templates directory.