PHPackages                             ahmachan/heng-phptemplate - 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. ahmachan/heng-phptemplate

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

ahmachan/heng-phptemplate
=========================

Think - the compiling PHP template engine

v1.0.5(9y ago)025MITPHPPHP &gt;=5.3

Since Jul 25Pushed 9y ago1 watchersCompare

[ Source](https://github.com/ahmachan/heng-phptemplate)[ Packagist](https://packagist.org/packages/ahmachan/heng-phptemplate)[ RSS](/packages/ahmachan-heng-phptemplate/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (4)Used By (0)

PHP Template Engine
===================

[](#php-template-engine)

php template engine base on php 5.4+.

For a more current PHP 5 implementation of the same ideas, check out phpsavant.com.

Example '''

set('title', 'Goods List'); $body = new Template($path); $body-&gt;set('goods', fetch\_goodslist()); $tpl-&gt;set('content', $body-&gt;fetch('goodslist.tpl')); echo $tpl-&gt;fetch('index.tpl'); ?&gt; ''' And it can be used with the following templates.

'''

  Id Name Price IsVIP    [](goods/)    ''' ''' &lt;title&gt;&lt;/title&gt;
 '''

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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 ~0 days

Total

2

Last Release

3628d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12838843?v=4)[ahmachan](/maintainers/ahmachan)[@ahmachan](https://github.com/ahmachan)

---

Top Contributors

[![ahmachan](https://avatars.githubusercontent.com/u/12838843?v=4)](https://github.com/ahmachan "ahmachan (17 commits)")

---

Tags

template engine

### Embed Badge

![Health badge](/badges/ahmachan-heng-phptemplate/health.svg)

```
[![Health](https://phpackages.com/badges/ahmachan-heng-phptemplate/health.svg)](https://phpackages.com/packages/ahmachan-heng-phptemplate)
```

###  Alternatives

[phptal/phptal

PHPTAL is a templating engine for PHP5 that implements Zope Page Templates syntax

180436.7k20](/packages/phptal-phptal)[foil/foil

PHP template engine for native PHP templates

170112.3k10](/packages/foil-foil)[proai/laravel-handlebars

A Laravel wrapper for LightnCandy for using the Handlebars (and Mustache) template engine.

38206.9k](/packages/proai-laravel-handlebars)[talesoft/tale-pug

A clean, lightweight and easy-to-use templating engine for PHP based on Pug, formerly Jade

319.5k3](/packages/talesoft-tale-pug)[wanze/template-engine-factory

Provides ProcessWire integration for various template engines such as Twig.

2612.3k4](/packages/wanze-template-engine-factory)[leitsch/kirby-blade

Enable Laravel Blade Template Engine for Kirby 4 and Kirby 5

2110.1k](/packages/leitsch-kirby-blade)

PHPackages © 2026

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