Twig is a powerful open-source template engine for PHP. The syntax used in Twig originated from Jinja and Django templates.