PHPackages                             lsolesen/php-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. lsolesen/php-template

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

lsolesen/php-template
=====================

Lightweight template engine with the same interface as Savant3 and Smarty.

1.0.1(10y ago)233484MITPHPPHP &gt;=4.4.0

Since Mar 19Pushed 6y ago1 watchersCompare

[ Source](https://github.com/lsolesen/php-template)[ Packagist](https://packagist.org/packages/lsolesen/php-template)[ Docs](https://github.com/lsolesen/php-template)[ RSS](/packages/lsolesen-php-template/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

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

[](#php-template-engine)

Very simple template engine for PHP Version 4. It is based on the article [Beyond the template engine](http://articles.sitepoint.com/article/beyond-template-engine) by Brian Lozier.

For a more current PHP 5 implementation of the same ideas, check out [phpsavant.com](http://phpsavant.com/).

Example
-------

[](#example)

```

```

And it can be used with the following templates.

```

        Id
        Name
        Email
        Banned

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 91.7% 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

3712d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/148026?v=4)[Lars Olesen](/maintainers/lsolesen)[@lsolesen](https://github.com/lsolesen)

---

Top Contributors

[![lsolesen](https://avatars.githubusercontent.com/u/148026?v=4)](https://github.com/lsolesen "lsolesen (33 commits)")[![john-kurkowski](https://avatars.githubusercontent.com/u/299487?v=4)](https://github.com/john-kurkowski "john-kurkowski (2 commits)")[![martinbean](https://avatars.githubusercontent.com/u/167312?v=4)](https://github.com/martinbean "martinbean (1 commits)")

---

Tags

template

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/lsolesen-php-template/health.svg)

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

###  Alternatives

[phpoffice/phpword

PHPWord - A pure PHP library for reading and writing word processing documents (OOXML, ODF, RTF, HTML, PDF)

7.6k34.7M186](/packages/phpoffice-phpword)[rize/uri-template

PHP URI Template (RFC 6570) supports both expansion &amp; extraction

420137.3M46](/packages/rize-uri-template)[mopa/bootstrap-sandbox-bundle

Seperate live docs from code

256.8k](/packages/mopa-bootstrap-sandbox-bundle)[larablocks/pigeon

A more flexible email message builder for Laravel 5 including chained methods, reusable message configurations, and message layout and template view management.

143.7k](/packages/larablocks-pigeon)

PHPackages © 2026

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