# Latte

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


Source: https://findsoftware.frbit.cloud/latte/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- home: https://latte.nette.org
- repository: https://github.com/nette/latte
- docs: https://latte.nette.org/en/develop
- x: https://twitter.com/nettefw
- discord: https://discord.gg/azXxTbuQVq
- forum: https://forum.nette.org/en/

### Identity

- status: active
- maintainer: David Grudl
- maintainerType: unknown
- parent: unknown
- firstRelease: 2014
- hqCountry: unknown

### Kind

- category: library
- hosting: php
- language: php
- runtime: php
- runtimeMin: php 8.2
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: translation tags and a translate filter through a translator extension

### Rendering and deploy

- runsAs: not applicable
- renderingModes: not applicable
- installMethod: composer

### License

- licenseModel: open-source
- license: BSD-3-Clause, GPL-2.0-only, GPL-3.0-only

### Releases

- currentMajor: 3
- latestReleaseDate: 2026-10-22

### Adoption

- githubStargazers: 1297
- packagistDownloads: 17391354
- npmWeeklyDownloads: not applicable
- contributors: 50
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: unknown
- dependentPackages: unknown

### Sources

- urls: https://latte.nette.org/ (read 2026-11-16)
- urls: https://api.github.com/repos/nette/latte (read 2026-11-16)
- urls: https://latte.nette.org/en/develop (read 2026-11-16)
- maintainer: https://github.com/nette/latte/blob/master/license.md (read 2026-11-16)
- firstRelease: https://api.github.com/repos/nette/latte/releases?per_page=100 (read 2026-11-16)
- category: https://latte.nette.org/ (read 2026-11-16)
- language: https://api.github.com/repos/nette/latte (read 2026-11-16)
- runtime: https://github.com/nette/latte/blob/v3.1.7/composer.json (read 2026-11-16)
- runtimeMin: https://github.com/nette/latte/blob/v3.1.7/composer.json (read 2026-11-16)
- installMethod: https://latte.nette.org/en/develop (read 2026-11-16)
- license: https://github.com/nette/latte/blob/v3.1.7/composer.json (read 2026-11-16)
- license: https://github.com/nette/latte/blob/v3.1.7/composer.json (read 2026-11-16)
- license: https://github.com/nette/latte/blob/v3.1.7/composer.json (read 2026-11-16)
- licenseModel: https://github.com/nette/latte/blob/v3.1.7/composer.json (read 2026-11-16)
- currentMajor: https://api.github.com/repos/nette/latte/releases?per_page=100 (read 2026-11-16)
- latestReleaseDate: https://api.github.com/repos/nette/latte/releases?per_page=100 (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/nette/latte (read 2026-11-16)
- contributors: https://api.github.com/repos/nette/latte/contributors?per_page=1 (read 2026-11-16)
- packagistDownloads: https://packagist.org/packages/latte/latte.json (read 2026-11-16)
- i18n: https://latte.nette.org/en/develop (read 2026-11-16)

## Notes

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.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
