FindSoftware

Latte

PHP templating engine that compiles templates into PHP code and escapes output according to the HTML context it appears in.

Latte is a templating engine for PHP. Its expressions are written exactly as in PHP. Latte compiles templates into PHP code, caches the result on disk and regenerates the cache when the source file changes. It escapes each value according to the HTML context it appears in, such as text, an attribute or JavaScript. The engine is called from PHP code, which passes parameters as arrays or as typed objects.

Worth knowing

The homepage compares Latte with Twig, and a converter on the Latte site turns Twig templates into Latte.

Identity

Status
Active
Maintainer
David Grudl4
First release
20145

Rendering and deploy

Install with
composer3

Releases

Current major version
35
Last release
2026-10-225

Adoption

GitHub stars
1,2972
Packagist downloads
17,391,3548
Contributors
507

Why these figures do not compare

Sources

  1. 2026-11-16: links, Categories
    latte.nette.org/
  2. 2026-11-16: links, Written in, GitHub stars
    api.github.com/repos/nette/latte
  3. 2026-11-16: links, Install with, Multilingual
    latte.nette.org/en/develop
  4. 2026-11-16: Maintainer
    github.com/nette/latte/blob/master/license.md
  5. 2026-11-16: First release, Current major version, Last release
    api.github.com/repos/nette/latte/releases?per_page=100
  6. 2026-11-16: Runtime, Minimum runtime, License, License model
    github.com/nette/latte/blob/v3.1.7/composer.json
  7. 2026-11-16: Contributors
    api.github.com/repos/nette/latte/contributors?per_page=1
  8. 2026-11-16: Packagist downloads
    packagist.org/packages/latte/latte.json

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON