Twig (template engine)

Twig
Original author(s)Armin Ronacher,[1] Fabien Potencier
Developer(s)Symfony SAS
Initial releaseOctober 12, 2009 (2009-10-12)
Stable release
3.21.1[2] / 3 May 2025 (3 May 2025)
Repository
Written inPHP
Operating systemCross-platform
TypeTemplate engine
LicenseBSD License
Websitetwig.symfony.com

Twig is a template engine for the PHP programming language. Its syntax originates from Jinja and Django templates.[3] It's an open source product[4] licensed under a BSD License and maintained by Fabien Potencier. The initial version was created by Armin Ronacher. Symfony PHP framework comes with a bundled support for Twig as its default template engine since version 2.[5]

The same template language is used by the Nunjucks template engine, thus Nunjucks is also supported by the following tools.

  1. ^ "mitsuhiko/twig". GitHub. August 13, 2019.
  2. ^ "Release 3.21.1". 3 May 2025. Retrieved 1 June 2025.
  3. ^ "Twig for Template Designers - Documentation - Twig - The flexible, fast, and secure PHP template engine". Twig.
  4. ^ "twigphp/Twig". GitHub. July 1, 2020.
  5. ^ "Symfony2 Documentation — Documentation". Twig. August 5, 2010. Archived from the original on 2010-08-05.

© MMXXIII Rich X Search. We shall prevail. All rights reserved. Rich X Search