PHPackages                             viaaurea/latte-v2 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. viaaurea/latte-v2

ActiveLibrary[Templating &amp; Views](/categories/templating)

viaaurea/latte-v2
=================

☕ Latte v2.x port for recent PHP versions.

2.11.101(1y ago)0128↓50%BSD-3-ClausePHPPHP 8.0 - 8.4

Since May 13Pushed 11mo agoCompare

[ Source](https://github.com/viaaurea/latte-v2)[ Packagist](https://packagist.org/packages/viaaurea/latte-v2)[ RSS](/packages/viaaurea-latte-v2/feed)WikiDiscussions trunk Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (18)Used By (0)

Latte version branch 2.x maintained for PHP 8.4 onwards
=======================================================

[](#latte-version-branch-2x-maintained-for-php-84-onwards)

> 💿 `composer require viaaurea/latte-v2`

Latte support for the v2 branch ended in 2023 with PHP 8.3 as the final supported PHP version.

We intend to support Latte v2 further, due to the fact that migration to Latte v3 is not trivial, if projects use custom tags (macros) heavily.

The intention is to support PHP 8.4+ without any deprecation warnings so that `E_ALL` can be used as the reporting level without issues.

Installation
------------

[](#installation)

Replace the original Latte v2 by this package:

```
composer remove latte/latte
composer require viaaurea/latte-v2

```

You should see the original Latte being uninstalled.

> 💡
>
> This package *replaces* the original Latte of version `2.11.*`, which means other packages that require `latte/latte:^2.11` will be content with `viaaurea/latte-v2`.

---

The original readme content follows.

---

---

[Latte: A Next-Generation Templating System for PHP](https://latte.nette.org)
=============================================================================

[](#latte-a-next-generation-templating-system-for-php)

✅ The only truly secure templating system for PHP
✅ You already know the syntax
✅ It is really fast
✅ Highly mature, stable, and widely used library

When it comes to templates, it pays off to be demanding and always expect nothing but the best. Latte is a true designer-friendly templating language. You will surely appreciate its intuitive syntax and enjoy many of its useful goodies.

[Documentation can be found on the website](https://latte.nette.org).

Support Latte
-------------

[](#support-latte)

Do you like Latte? Are you looking forward to the new features?

[![Buy me a coffee](https://camo.githubusercontent.com/afa7c20ccaac10ac4f1f51669bafb212856b932e0c8b276cb290336cf08624b8/68747470733a2f2f66696c65732e6e657474652e6f72672f69636f6e732f646f6e6174696f6e2d332e737667)](https://github.com/sponsors/dg)

Thank you!

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance46

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity89

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 93.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~287 days

Recently: every ~273 days

Total

12

Last Release

500d ago

PHP version history (6 changes)v2.2.x-devPHP &gt;=5.3.1

v2.4.x-devPHP &gt;=5.4.4

v2.7.x-devPHP &gt;=7.1

v2.9.x-devPHP &gt;=7.1 &lt;8.1

v2.11.x-devPHP 7.1 - 8.3

2.11.101-alphaPHP 8.0 - 8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/0bd7fa945013e9c0dcd65693575276bf5fcb9b9de13e1123e9f2c4a0a4c0fb6b?d=identicon)[dakujem](/maintainers/dakujem)

---

Top Contributors

[![dg](https://avatars.githubusercontent.com/u/194960?v=4)](https://github.com/dg "dg (1559 commits)")[![vrana](https://avatars.githubusercontent.com/u/117453?v=4)](https://github.com/vrana "vrana (17 commits)")[![JanTvrdik](https://avatars.githubusercontent.com/u/175109?v=4)](https://github.com/JanTvrdik "JanTvrdik (16 commits)")[![matej21](https://avatars.githubusercontent.com/u/1276059?v=4)](https://github.com/matej21 "matej21 (13 commits)")[![milo](https://avatars.githubusercontent.com/u/439140?v=4)](https://github.com/milo "milo (8 commits)")[![hrach](https://avatars.githubusercontent.com/u/284263?v=4)](https://github.com/hrach "hrach (7 commits)")[![fprochazka](https://avatars.githubusercontent.com/u/158625?v=4)](https://github.com/fprochazka "fprochazka (5 commits)")[![juzna](https://avatars.githubusercontent.com/u/227416?v=4)](https://github.com/juzna "juzna (5 commits)")[![kravco](https://avatars.githubusercontent.com/u/115938?v=4)](https://github.com/kravco "kravco (5 commits)")[![xificurk](https://avatars.githubusercontent.com/u/117465?v=4)](https://github.com/xificurk "xificurk (4 commits)")[![dakujem](https://avatars.githubusercontent.com/u/443067?v=4)](https://github.com/dakujem "dakujem (4 commits)")[![kukulich](https://avatars.githubusercontent.com/u/260445?v=4)](https://github.com/kukulich "kukulich (3 commits)")[![mishak87](https://avatars.githubusercontent.com/u/276500?v=4)](https://github.com/mishak87 "mishak87 (3 commits)")[![Majkl578](https://avatars.githubusercontent.com/u/144181?v=4)](https://github.com/Majkl578 "Majkl578 (3 commits)")[![vojtech-dobes](https://avatars.githubusercontent.com/u/415925?v=4)](https://github.com/vojtech-dobes "vojtech-dobes (3 commits)")[![enumag](https://avatars.githubusercontent.com/u/539462?v=4)](https://github.com/enumag "enumag (2 commits)")[![fabik](https://avatars.githubusercontent.com/u/816866?v=4)](https://github.com/fabik "fabik (2 commits)")[![stekycz](https://avatars.githubusercontent.com/u/865447?v=4)](https://github.com/stekycz "stekycz (2 commits)")[![spaze](https://avatars.githubusercontent.com/u/1966648?v=4)](https://github.com/spaze "spaze (2 commits)")[![MartyIX](https://avatars.githubusercontent.com/u/203266?v=4)](https://github.com/MartyIX "MartyIX (2 commits)")

---

Tags

twignettesecurityhtmltemplateengineescapingcontext-sensitive

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/viaaurea-latte-v2/health.svg)

```
[![Health](https://phpackages.com/badges/viaaurea-latte-v2/health.svg)](https://phpackages.com/packages/viaaurea-latte-v2)
```

###  Alternatives

[latte/latte

☕ Latte: the intuitive and fast template engine for those who want the most secure PHP sites. Introduces context-sensitive escaping.

1.3k15.7M683](/packages/latte-latte)[voku/anti-xss-twig

Twig extension for XSS protection.

126.1k](/packages/voku-anti-xss-twig)[daycry/twig

twig for Codeigniter 4

145.1k2](/packages/daycry-twig)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
