latte / latte
☕ Latte: the safest template engine for PHP. Context-sensitive escaping stops XSS, tags speak PHP, and n:attributes keep the HTML clean.
Requires
- php: 8.2 - 8.6
- ext-json: *
- ext-tokenizer: *
Requires (Dev)
- nette/php-generator: ^4.0
- nette/phpstan-rules: ^1.0
- nette/tester: ^2.6
- nette/utils: ^4.0
- phpstan/extension-installer: ^1.4@stable
- phpstan/phpstan: ^2.1@stable
- tracy/tracy: ^2.10
Suggests
- ext-fileinfo: to use filter |datastream
- ext-iconv: to use filters |reverse, |substring
- ext-intl: to use Latte\Engine::setLocale()
- ext-mbstring: to use filters like lower, upper, capitalize, ...
- nette/php-generator: to use tag {templatePrint}
- nette/utils: to use filter |webalize
Provides
None
Conflicts
- nette/application: <3.1.7
- nette/caching: <3.1.4
Replaces
None
- dev-master / 3.1.x-dev
- v3.1.7
- v3.1.6
- v3.1.5
- v3.1.4
- v3.1.3
- v3.1.2
- v3.1.1
- v3.1.0
- v3.0.x-dev
- v3.0.27
- v3.0.26
- v3.0.25
- v3.0.24
- v3.0.23
- v3.0.22
- v3.0.21
- v3.0.20
- v3.0.18
- v3.0.16
- v3.0.14
- v3.0.13
- v3.0.12
- v3.0.10
- v3.0.9
- v3.0.8
- v3.0.7
- v3.0.6
- v3.0.5
- v3.0.4
- v3.0.3
- v3.0.2
- v3.0.1
- v3.0.0
- v2.11.x-dev
- v2.11.7
- v2.11.6
- v2.11.5
- v2.11.4
- v2.11.3
- v2.11.2
- v2.11.1
- v2.11.0
- v2.10.x-dev
- v2.10.10
- v2.10.9
- v2.10.8
- v2.10.7
- v2.10.6
- v2.10.5
- v2.10.4
- v2.10.3
- v2.10.2
- v2.10.1
- v2.9.x-dev
- v2.9.6
- v2.9.5
- v2.9.4
- v2.9.3
- v2.9.2
- v2.9.1
- v2.9.0
- v2.8.x-dev
- v2.8.8
- v2.8.7
- v2.8.6
- v2.8.5
- v2.8.4
- v2.8.3
- v2.8.2
- v2.8.1
- v2.8.0
- v2.7.x-dev
- v2.7.4
- v2.7.3
- v2.7.2
- v2.7.1
- v2.7.0
- v2.6.x-dev
- v2.6.4
- v2.6.3
- v2.6.2
- v2.6.1
- v2.6.0
- v2.5.x-dev
- v2.5.7
- v2.5.6
- v2.5.5
- v2.5.4
- v2.5.3
- v2.5.2
- v2.5.1
- v2.5.0
- v2.4.x-dev
- v2.4.9
- v2.4.8
- v2.4.7
- v2.4.6
- v2.4.5
- v2.4.4
- v2.4.3
- v2.4.2
- v2.4.1
- v2.4.0
- v2.3.x-dev
- v2.3.13
- v2.3.12
- v2.3.11
- v2.3.10
- v2.3.9
- v2.3.8
- v2.3.7
- v2.3.6
- v2.3.5
- v2.3.4
- v2.3.3
- v2.3.2
- v2.3.1
- v2.3.0
- v2.2.x-dev
- v2.2.9
- v2.2.8
- v2.2.7
- v2.2.6
- v2.2.5
- v2.2.4
- v2.2.3
- v2.2.2
- v2.2.1
- v2.2.0
- dev-fiber
- dev-analysis
- dev-caching-iterator-check-validity
This package is auto-updated.
Last update: 2026-11-06 02:04:02 UTC
README
✅ The only truly secure templating system for PHP
✅ You already know the syntax
✅ Highly mature, fast, and widely used library
Latte is the safest templating system for PHP. It is cleverly designed and easy to learn for those familiar with PHP, as they can quickly adopt its basic tags. A wide range of useful features will significantly simplify your work. It provides top-notch protection against critical vulnerabilities and allows you to focus on creating high-quality applications without worrying about their security.
🟨 Only 1% of programmers can pass this quiz!
Getting started
1️⃣ First, familiarize yourself with Latte syntax and try it online
2️⃣ Take a look at the basic set of tags and filters
3️⃣ Render a template with a few lines of PHP code
Editor Integration
- PhpStorm (Latte, Latte Pro or Latte+)
- Visual Studio Code (Nette Latte + Neon or Nette for VS Code)
Do you like Latte? Are you looking forward to the new features?
Thank you!