Twig 1.13.1


Twig is a modern PHP template engine features for flexible, fast and secure. It complies templates down to plain optimized PHP code, it also has a sandbox mode to evaluated untrusted template code, which allows Twig to be used as a template language for applications where users may modify the template design. Twig is powered by a flexible lexer and parser, which allows the developers to define its own custom tags and filters and create its own DSL.

Features of Twig:
- Template oriented syntax: Twig has shortcuts for common patterns, like having a default text displayed when you iterate over an empty array:
- Unit tested: Twig is fully unit-tested. The library is stable and ready to be used in large projects.
- Clean Error Messages: Whenever you have a syntax problem within a template, Twig outputs a helpful message with the filename and the line number where the problem occurred. It eases the debugging a lot.
- And much more.

- PHP 5.2.4 or Higher

What's New in This Version:
- Fixed fatal error that should be an exception when adding a filter/function/test too late.
- Added a batch filter.
- Added support for encoding an array as query string in the url_encode filter.

License type: BSD
Date added: 5 years, 3 months 21 days ago | Last updated: 2 years, 9 months ago

More popular Template engine

Listing Files

  • .gitignore
  • 27 Bytes
  • 11/11/2012 09:17:58
  • phpunit.xml.dist
  • 651 Bytes
  • 11/11/2012 09:17:58
List All Files