PHPackages                             templado/engine - 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. templado/engine

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

templado/engine
===============

A pragmatic approach to templating for PHP 8.2+

4.2.6(1y ago)5018.4k↓16.7%8[3 issues](https://github.com/templado/engine/issues)3BSD-3-ClausePHPPHP ^7.4|^8.0CI failing

Since Apr 16Pushed 1y ago5 watchersCompare

[ Source](https://github.com/templado/engine)[ Packagist](https://packagist.org/packages/templado/engine)[ GitHub Sponsors](https://github.com/theseer)[ RSS](/packages/templado-engine/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (45)Used By (3)

Templado 5
==========

[](#templado-5)

> **Templado 5.0 is currently under heavy development**
>
> Templado 5.0 - developed in `main` - is, in major parts, a rewrite from Templado 4.x and under current development. If you want to try 5.0 already, please be aware of the fact the current API is subject to change and it is not yet feature complete.

[![Integrate](https://github.com/templado/engine/workflows/Integrate/badge.svg)](https://github.com/templado/engine/actions)

A pragmatic approach to templating for PHP 8.2+

(Use Templado [4.x](https://github.com/templado/engine/tree/4.x) for PHP &gt;=7.4)

### Motivation

[](#motivation)

Most of today's templating engines mix code for the required rendering logic with HTML markup in one file and require the developers to learn their respective language.

Templado follows a different approach on templating: Being in part inspired by [Tempan](https://github.com/watoki/tempan), Templado relies solely on plain HTML markup. The limited amount of display logic required is contained with the engine and triggered by the view model when it's applied to the Page.

### Always ready to preview

[](#always-ready-to-preview)

As a Templado template is plain HTML, previewing is as easy as opening the HTML file with a browser - example data can and should be included as the engine will clean it up based on the view model upon rendering.

### Form handling included

[](#form-handling-included)

To make form handling even more easy, Templado comes with explicit HTML Form support. Based on supplied Input data, Templado will repopulate the HTML form and even include your CSRF protection code.

### Merging of Documents

[](#merging-of-documents)

Documents can be merged based on element ID values to combine multiple fragments - even recursively - into a final document.

### Custom transformations, Filters and Serialization

[](#custom-transformations-filters-and-serialization)

Templado allows for custom transformations, like adding a class to every `a` tag and string based replacements upon serialization. The full serialization can be customized, with some default variants shipping along.

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance48

Moderate activity, may be stable

Popularity39

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 98.4% 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 ~68 days

Recently: every ~112 days

Total

44

Last Release

375d ago

Major Versions

1.1.0 → 2.0.02017-08-02

2.3.2 → 3.0.02019-05-16

3.0.1 → 4.0.02019-09-13

4.2.4 → 5.0.0-rc.12023-08-29

4.2.5 → 5.0.0-rc.42024-04-03

PHP version history (5 changes)1.0.0PHP ^7.0

3.0.0PHP ^7.2

4.0.0PHP ^7.2|^8.0

4.2.3PHP ^7.4|^8.0

5.0.0-rc.1PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![theseer](https://avatars.githubusercontent.com/u/111333?v=4)](https://github.com/theseer "theseer (432 commits)")[![sebastianbergmann](https://avatars.githubusercontent.com/u/25218?v=4)](https://github.com/sebastianbergmann "sebastianbergmann (3 commits)")[![localheinz](https://avatars.githubusercontent.com/u/605483?v=4)](https://github.com/localheinz "localheinz (2 commits)")[![JanWennrich](https://avatars.githubusercontent.com/u/42703348?v=4)](https://github.com/JanWennrich "JanWennrich (1 commits)")[![spriebsch](https://avatars.githubusercontent.com/u/61342?v=4)](https://github.com/spriebsch "spriebsch (1 commits)")

---

Tags

phpphp8template-enginetemplating

### Embed Badge

![Health badge](/badges/templado-engine/health.svg)

```
[![Health](https://phpackages.com/badges/templado-engine/health.svg)](https://phpackages.com/packages/templado-engine)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[nicmart/string-template

StringTemplate is a very simple string template engine for php. I've written it to have a thing like sprintf, but with named and nested substutions.

2101.7M30](/packages/nicmart-string-template)[symfony/ux-icons

Renders local and remote SVG icons in your Twig templates.

555.8M69](/packages/symfony-ux-icons)

PHPackages © 2026

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