Twig is a template language for PHP, released under the new BSD license (code
Twig uses a syntax similar to the Django and Jinja template languages which inspired the Twig runtime environment.
Code Quality Rank: L4
Monthly Downloads: 4,214,846
Programming language: PHP
License: BSD 3-clause "New" or "Revised" License
Latest version: v3.4.3
Twig alternatives and similar libraries
Based on the "Templating" category.
Alternatively, view Twig alternatives based on common mentions on social networks and blogs.
Mustache8.3 6.1 L3 Twig VS MustacheA Mustache implementation in PHP.
Smarty8.2 6.5 L4 Twig VS SmartySmarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic.
Plates6.9 0.0 L5 Twig VS PlatesNative PHP template system
Latte6.2 8.3 L3 Twig VS Latte☕ Latte: the safest & truly intuitive templates for PHP. Engine for those who want the most secure PHP sites.
MtHaml4.4 0.0 L5 Twig VS MtHamlMulti target HAML (HAML for PHP, Twig, <your language here>)
PHPTAL3.6 0.0 L3 Twig VS PHPTALPHP Template Attribute Language — template engine for XSS-proof well-formed XHTML and HTML5 pages
Blade3.3 0.0 Twig VS BladeView template engine of PHP extracted from Laravel
Foil3.2 0.0 L5 Twig VS FoilPHP template engine for native PHP templates
Lex2.8 0.0 L5 Twig VS LexA lightweight template parser used by PyroCMS.
Phly Mustache2.6 0.0 L4 Twig VS Phly MustachePHP 5.3 Mustache implementation
TextGenerator2.5 0.8 L5 Twig VS TextGeneratorTextGenerator is a PHP package that aims to generate automated texts from data.
Aura.View2.5 0.0 Twig VS Aura.ViewProvides TemplateView and TwoStepView using PHP as the templating language, with support for partials, sections, and helpers.
Tale Jade2.4 0.0 L2 Twig VS Tale JadeA complete and fully-functional implementation of the Jade template language for PHP
PhpEcho1.1 0.0 Twig VS PhpEchoA native PHP template engine: One class to rule them all ;-)
Static code analysis for 29 languages.
Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Twig or a related project?