Twig is an open-source template language for PHP.

Release Released Security Support Latest
3 5 years ago
(15 Nov 2019)
Yes 3.17.1
(12 Dec 2024)
2 7 years and 11 months ago
(05 Jan 2017)
Ended 11 months ago
(31 Dec 2023)
2.16.1
(09 Sep 2024)
1 13 years ago
(27 Mar 2011)
Ended 2 years ago
(28 Sep 2022)
1.44.8
(09 Sep 2024)

Twig 1, 2 and 3 still receive security updates.

PHP Compatibility

Twig Version Supported PHP Version
3 >=7.2.5
2 >=7.2.5
1 >=7.2.5

You should be running one of the supported release numbers listed above in the rightmost column.


You can submit an improvement to this page on GitHub :octocat: . This page has a corresponding Talk Page.

A JSON version of this page is available at /api/twig.json. See the API Documentation for more information. You can subscribe to the iCalendar feed at /calendar/twig.ics.