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

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

rocketphp/template
==================

Dynamic HTML templates.

1.0.0(10y ago)1161MITHTMLPHP &gt;=5.5

Since Sep 1Pushed 10y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (3)Used By (0)

template
========

[](#template)

[![Build Status](https://camo.githubusercontent.com/d91649c7f5a9bae1e05573dd38aec6b2f1e886ee315c99c42b042c418119f40d/68747470733a2f2f7472617669732d63692e6f72672f726f636b65747068702f74656d706c6174652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/rocketphp/template)[![Coverage Status](https://camo.githubusercontent.com/7423466d7027aa8769725a1ddf7933aa8b7da03181c7386070b96ff3b77fc825/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f726f636b65747068702f74656d706c6174652f62616467652e7376673f6272616e63683d646576656c6f7026736572766963653d676974687562)](https://coveralls.io/github/rocketphp/template?branch=develop)[![Dependency Status](https://camo.githubusercontent.com/76a57668511a567f8a55ce2a2822e1d6290e07f5002dee377239585469cb3969/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3535653565393662386330663632303031633030303434362f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/55e5e96b8c0f62001c000446)

[![Latest Stable Version](https://camo.githubusercontent.com/e7760004bccdfa2b30e70789df360c231c757f49578c31ab823ef7d9f8d4cb31/68747470733a2f2f706f7365722e707567782e6f72672f726f636b65747068702f74656d706c6174652f762f737461626c65)](https://packagist.org/packages/rocketphp/template)[![License](https://camo.githubusercontent.com/a413922c5472f5ea7e784b4af90ff11efc0406f13faad72e69c92432c379c9a1/68747470733a2f2f706f7365722e707567782e6f72672f726f636b65747068702f74656d706c6174652f6c6963656e7365)](https://packagist.org/packages/rocketphp/template)

`RocketPHP\Template` uses static template files. It replaces \[@var\] tags with PHP variables.

***To use a template*** – start with an instance of Template and set variables before calling output().

```
use RocketPHP\Template\Template;

$tpl = new Template('index.tpl');
$tpl->set('title', 'My Page Title');
echo $tpl->output();
```

- File issues at
- Documentation is at

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Total

2

Last Release

3900d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/49f1849bfe77d7b1f690702822ed209ba24bbb4918a8326287d43df7c6c7751b?d=identicon)[rocketphp](/maintainers/rocketphp)

---

Tags

htmltemplaterocketphp

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[phpoffice/phpword

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

7.5k34.7M183](/packages/phpoffice-phpword)[latte/latte

☕ Latte: the intuitive and fast template engine for those who want the most secure PHP sites. Introduces context-sensitive escaping.

1.3k15.7M680](/packages/latte-latte)[phug/phug

Pug (ex-Jade) facade engine for PHP, HTML template engine structured by indentation

67292.2k12](/packages/phug-phug)[sitegeist/fluid-components

Encapsulated frontend components with Fluid's ViewHelper syntax

55339.1k3](/packages/sitegeist-fluid-components)[sitegeist/fluid-styleguide

Living styleguide for Fluid Components

16227.4k1](/packages/sitegeist-fluid-styleguide)[talesoft/tale-pug

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

319.4k3](/packages/talesoft-tale-pug)

PHPackages © 2026

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