twigphp/Twig

Twig, the flexible, fast, and secure template language for PHP

8,374

stars

7,312

commits

PHP

primary language

Sep 11, 2026

updated

twig.symfony.com/
php
template-engine
template-language
templating
twig

README

Twig, the flexible, fast, and secure template language for PHP
==============================================================

Twig is a template language for PHP.

Twig uses a syntax similar to the Django and Jinja template languages which
inspired the Twig runtime environment.

Sponsors
--------

.. raw:: html

    <a href="https://docs.blackfire.io/introduction?utm_source=twig&utm_medium=github_readme&utm_campaign=logo">
        <img src="https://static.blackfire.io/assets/intemporals/logo/png/blackfire-io_secondary_horizontal_transparent.png?1" width="255px" alt="Blackfire.io">
    </a>

More Information
----------------

Read the `documentation`_ for more information.

.. _documentation: https://twig.symfony.com/documentation

Not written in Markdown, so it's shown here as plain text — view it formatted on GitHub.

Contributors

(top 30 of 401)

fabpot

5,967 commits

nicolas-grekas

85 commits

derickr

80 commits

xabbuh

56 commits

twigphp/Twig

Twig, the flexible, fast, and secure template language for PHP

8,374

stars

7,312

commits

PHP

primary language

Sep 11, 2026

updated

twig.symfony.com/
php
template-engine
template-language
templating
twig

README

Twig, the flexible, fast, and secure template language for PHP
==============================================================

Twig is a template language for PHP.

Twig uses a syntax similar to the Django and Jinja template languages which
inspired the Twig runtime environment.

Sponsors
--------

.. raw:: html

    <a href="https://docs.blackfire.io/introduction?utm_source=twig&utm_medium=github_readme&utm_campaign=logo">
        <img src="https://static.blackfire.io/assets/intemporals/logo/png/blackfire-io_secondary_horizontal_transparent.png?1" width="255px" alt="Blackfire.io">
    </a>

More Information
----------------

Read the `documentation`_ for more information.

.. _documentation: https://twig.symfony.com/documentation

Not written in Markdown, so it's shown here as plain text — view it formatted on GitHub.

Contributors

(top 30 of 401)

fabpot

5,967 commits

nicolas-grekas

85 commits

derickr

80 commits

xabbuh

56 commits

Languages

PHP

99.9%