PHPackages                             mapq/html-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. mapq/html-template

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

mapq/html-template
==================

A template system to separate HTML from backend logic. Support in PHP for now.

v1.3.6(11y ago)1534[1 PRs](https://github.com/mapq/Template-System-in-PHP/pulls)AGPL-3.0PHPPHP &gt;5.0

Since Dec 28Pushed 11y ago2 watchersCompare

[ Source](https://github.com/mapq/Template-System-in-PHP)[ Packagist](https://packagist.org/packages/mapq/html-template)[ RSS](/packages/mapq-html-template/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (8)Used By (0)

Simple Template System in PHP
=============================

[](#simple-template-system-in-php)

The tiny template is a very simple template language implemented in PHP to be used for small projects and classroom instruction. The language supports conditionals, repetitions, and calls to functions embedded in HTML. I wrote it to explain how template systems work and to demonstrate why they need to have some amount of computation in them.

Since its first version, I have added a few things that were easy to add but extended it beyond the original goals. There are still a few things left to be implemented.

Manuel A. Perez-Quinones Computer Science Virginia Tech 2014

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 95.8% 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 ~19 days

Recently: every ~29 days

Total

7

Last Release

4042d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/008a3a7e744f3072d69712301516cc79106c28d8f30b1baa386e6b2ddabf4264?d=identicon)[Mapq](/maintainers/Mapq)

---

Top Contributors

[![mapq](https://avatars.githubusercontent.com/u/458794?v=4)](https://github.com/mapq "mapq (23 commits)")[![mikesir87](https://avatars.githubusercontent.com/u/746837?v=4)](https://github.com/mikesir87 "mikesir87 (1 commits)")

### Embed Badge

![Health badge](/badges/mapq-html-template/health.svg)

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

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