PHPackages                             ehough/contemplate - 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. ehough/contemplate

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

ehough/contemplate
==================

Template library that uses pure PHP syntax. Nothing new to learn, blazingly fast, and compatible with PHP 5.2+.

1.0.4(12y ago)2506MPL-2.0PHPPHP &gt;=5.1.0

Since Jul 11Pushed 10y agoCompare

[ Source](https://github.com/ehough/contemplate)[ Packagist](https://packagist.org/packages/ehough/contemplate)[ Docs](https://github.com/ehough/contemplate)[ RSS](/packages/ehough-contemplate/feed)WikiDiscussions develop Synced today

READMEChangelog (1)Dependencies (1)Versions (7)Used By (0)

contemplate
-----------

[](#contemplate)

[![Build Status](https://camo.githubusercontent.com/309bf4e245cc31faa03c6cb6454ab339d9167a6748c59d29b92fa03a7ec28a74/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f65686f7567682f636f6e74656d706c6174652e706e67)](http://travis-ci.org/ehough/contemplate)[![Project Status: Unsupported - The project has reached a stable, usable state but the author(s) have ceased all work on it. A new maintainer may be desired.](https://camo.githubusercontent.com/baae56ff2a4e564adcf10fe13a639b7e4aaf1d62054fd5086a2e570ecc3637e5/687474703a2f2f7777772e7265706f7374617475732e6f72672f6261646765732f6c61746573742f756e737570706f727465642e737667)](http://www.repostatus.org/#unsupported)[![Latest Stable Version](https://camo.githubusercontent.com/9bc205f2ad63ef213262dbe038bd7c90232f711e00f50754885fa8af3872cef1/68747470733a2f2f706f7365722e707567782e6f72672f65686f7567682f636f6e74656d706c6174652f762f737461626c65)](https://packagist.org/packages/ehough/contemplate)[![License](https://camo.githubusercontent.com/196a2c165a032f13f5df41c1b8e0f2fb694b235b750b456eb46977dd5d665902/68747470733a2f2f706f7365722e707567782e6f72672f65686f7567682f636f6e74656d706c6174652f6c6963656e7365)](https://packagist.org/packages/ehough/contemplate)

**This library is no longer maintained.** Template library that uses pure PHP syntax. Nothing new to learn, blazingly fast, and compatible with PHP 5.2+.

```
$template = new ehough_contemplate_impl_SimpleTemplate();  //implements ehough_contemplate_api_Template
$template->setPath('/some/path/to/template.html.php');

$template->setVariable('foo', 'bar');
$template->setVariable('baz', array('one' => 'two'));

echo $template->toString();
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

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

Total

5

Last Release

4729d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/53b269d929f6ba572a15e4b069d9b59e0e99af74db1be60cbac7a56adfea9221?d=identicon)[ehough](/maintainers/ehough)

---

Top Contributors

[![ehough](https://avatars.githubusercontent.com/u/369261?v=4)](https://github.com/ehough "ehough (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ehough-contemplate/health.svg)

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

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