Twig (template engine)
| Twig | |
|---|---|
| Original authors | Armin Ronacher, Fabien Potencier |
| Developer | Symfony SAS |
| Release | October 12, 2009 |
| Stable release | 3.22.1
/ 16 November 2025 |
| Written in | PHP |
| Operating system | Cross-platform |
| Type | Template engine |
| License | BSD License |
| Website | twig |
| Repository | |
Twig is a free and open-source template engine for PHP. Its syntax originates from Jinja and Django templates. It is licensed under the BSD License and maintained by Fabien Potencier. The initial version was created by Armin Ronacher. Symfony comes with bundled support for Twig as its default template engine since version 2.
The same template language is used by the Nunjucks template engine, thus Nunjucks is also supported by the following tools.