PHPackages                             herrera-io/template - 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. herrera-io/template

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

herrera-io/template
===================

A simple templating engine using regular PHP files.

2.0.0(12y ago)34831MITPHPPHP &gt;=5.3.3

Since Jan 16Pushed 12y agoCompare

[ Source](https://github.com/kherge-archive/php-template)[ Packagist](https://packagist.org/packages/herrera-io/template)[ Docs](http://herrera-io.github.com/php-template)[ RSS](/packages/herrera-io-template/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (6)Used By (1)

Template
========

[](#template)

[![Build Status](https://camo.githubusercontent.com/56af6e9516f2170cab17f5389c30a9b65021230ad15829dc494614e75a4a1f78/68747470733a2f2f7472617669732d63692e6f72672f686572726572612d696f2f7068702d74656d706c6174652e706e67)](http://travis-ci.org/herrera-io/php-template)

Template is a very simple template rendering engine that uses normal PHP files.

```
$engine = Herrera\Template\Engine::create('/path/to/templates');

$engine['myGlobal'] = 123;

$engine->display('myTemplate.php', array('templateVar' => 456));
```

```
myGlobal:
templateVar:
```

Documentation
-------------

[](#documentation)

- [Installing](doc/00-Installing.md)
- [Usage](doc/01-Usage.md)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~38 days

Total

5

Last Release

4717d ago

Major Versions

1.2.0 → 2.0.02013-06-18

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9122157?v=4)[Kevin Herrera](/maintainers/kherge)[@kherge](https://github.com/kherge)

---

Top Contributors

[![kherge](https://avatars.githubusercontent.com/u/9122157?v=4)](https://github.com/kherge "kherge (24 commits)")

---

Tags

templating

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/herrera-io-template/health.svg)

```
[![Health](https://phpackages.com/badges/herrera-io-template/health.svg)](https://phpackages.com/packages/herrera-io-template)
```

###  Alternatives

[twig/twig

Twig, the flexible, fast, and secure template language for PHP

8.4k443.2M5.8k](/packages/twig-twig)[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[smarty/smarty

Smarty - the compiling PHP template engine

2.3k39.1M395](/packages/smarty-smarty)[timber/timber

Create WordPress themes with beautiful OOP code and the Twig Template Engine

5.7k3.4M111](/packages/timber-timber)[league/plates

Plates, the native PHP template system that's fast, easy to use and easy to extend.

1.5k5.9M232](/packages/league-plates)[eftec/bladeone

The standalone version Blade Template Engine from Laravel in a single php file

8208.4M87](/packages/eftec-bladeone)

PHPackages © 2026

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