Twig is a template engine for the PHP programming language. Its syntax originates from Jinja and Django templates.