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 2mo 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 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community5

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

3578d ago

### Community

---

Top Contributors

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

### 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

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[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)

PHPackages © 2026

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