PHPackages                             phptransformers/phptal - 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. phptransformers/phptal

ActiveLibrary

phptransformers/phptal
======================

PHPTAL implementation of PhpTransformer.

1.0.0(10y ago)146MITPHPPHP &gt;=5.3.0

Since Feb 28Pushed 8y ago2 watchersCompare

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

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

PHPTAL for PHPTransformers
==========================

[](#phptal-for-phptransformers)

[PHPTAL](http://phptal.org/) support for [PHPTransformers](http://github.com/phptransformers/phptransformer).

Install
-------

[](#install)

Via Composer

```
$ composer require phptransformers/phptal
```

Usage
-----

[](#usage)

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

### Options

[](#options)

```
$engine = new PHPTALTransformer(array(
    'cache-dir' => 'path/to/cache/directory', // Default to the system temporary directory
    'template-dir' => 'path/to/template/directory' // default to $PWD
));

// ...

$phptal = new \PHPTAL();
$engine = new PHPTALTransformer(array(
    'phptal' => $phptal // 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

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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

3728d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e35bfbefc89c6998a77e2bf9ef3da42d80513b57cb9ae209b6c39b92a96097b3?d=identicon)[MacFJA](/maintainers/MacFJA)

---

Top Contributors

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

---

Tags

templatestemplate enginephptransformersphptransformerzopephptal

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[phptal/phptal

PHPTAL is a templating engine for PHP5 that implements Zope Page Templates syntax

179421.6k19](/packages/phptal-phptal)[namesco/ztal

ZTal makes integrating the PHP templating system PHPTAL into Zend Framework easy.

2119.9k](/packages/namesco-ztal)[foil/foil

PHP template engine for native PHP templates

170111.2k7](/packages/foil-foil)

PHPackages © 2026

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