PHPackages                             phptransformers/text-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. [Testing &amp; Quality](/categories/testing)
4. /
5. phptransformers/text-template

ActiveLibrary[Testing &amp; Quality](/categories/testing)

phptransformers/text-template
=============================

PHPUnit's Text\_Template implementation of PhpTransformer.

1.0.0(10y ago)146MITPHP

Since Feb 28Pushed 8y ago2 watchersCompare

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

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

Text\_Template for PHPTransformers
==================================

[](#text_template-for-phptransformers)

[PHPUnit's Text\_Template](https://github.com/sebastianbergmann/php-text-template/) support for [PHPTransformers](http://github.com/phptransformers/phptransformer).

Install
-------

[](#install)

Via Composer

```
$ composer require phptransformers/text-template
```

Usage
-----

[](#usage)

```
$engine = new TextTemplateTransformer();
echo $engine->render('Hello, {name}!', array('name' => 'phptransformers'));
```

### Options

[](#options)

```
$engine = new TextTemplateTransformer(array(
    'open-delimiter' => '{', // Default to '{' (Text_Template default)
    'close-delimiter' => '}' // Default to '}' (Text_Template default)
));

// ...

$textTemplate = new \Text_Template();
$engine = new TextTemplateTransformer(array(
    'text-template' => $textTemplate // All others options are ignored
));
```

Testing
-------

[](#testing)

```
$ composer test
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

3731d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1475671?v=4)[MacFJA](/maintainers/MacFJA)[@MacFJA](https://github.com/MacFJA)

---

Top Contributors

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

---

Tags

phpunittemplatestemplate enginephptransformersphptransformerText\_Template

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[phpunit/phpunit

The PHP Unit Testing framework.

20.0k910.7M134.8k](/packages/phpunit-phpunit)

PHPackages © 2026

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