PHPackages                             substitute/substitute - 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. substitute/substitute

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

substitute/substitute
=====================

String replacement based template engine

v1.1(11y ago)0168[1 PRs](https://github.com/raymondjavaxx/substitute/pulls)MITPHP

Since Oct 31Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

Substitute
==========

[](#substitute)

String replacement based templating engine

[![Build Status](https://camo.githubusercontent.com/ec2aa69bb6d51d72f1a7af6cfeeefa05c5aa648208e6441be798b929af462afc/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f7261796d6f6e646a61766178782f737562737469747574652e706e67)](http://travis-ci.org/raymondjavaxx/substitute)

Usage
-----

[](#usage)

```
$template = new \substitute\Template("Hi {name}, your activation code is {code}.")
$message = $template->render(array('name' => 'John', 'code' => '1234')); // Hi John, your activation code is 1234.

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Total

2

Last Release

4176d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1fd9c86225a5caae462698823d30f942f13f2e68d5385ec92fe614b44f101a3f?d=identicon)[raymondjavaxx](/maintainers/raymondjavaxx)

---

Top Contributors

[![raymondjavaxx](https://avatars.githubusercontent.com/u/28428?v=4)](https://github.com/raymondjavaxx "raymondjavaxx (7 commits)")

---

Tags

template

### Embed Badge

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

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

###  Alternatives

[phpoffice/phpword

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

7.5k34.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)
