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

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

phptransformers/twig
====================

Twig implementation of PhpTransformer.

1.0.0(8y ago)0511[1 PRs](https://github.com/phptransformers/twig/pulls)MITPHPPHP &gt;=5.3.0

Since Sep 30Pushed 8y ago2 watchersCompare

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

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

Twig for PHPTransformers
========================

[](#twig-for-phptransformers)

[Twig](http://twig.sensiolabs.org/) support for [PHPTransformers](http://github.com/phptransformers/phptransformer).

Install
-------

[](#install)

Via Composer

```
$ composer require phptransformers/twig
```

Usage
-----

[](#usage)

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

Testing
-------

[](#testing)

```
$ phpunit
```

License
-------

[](#license)

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

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.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

Unknown

Total

1

Last Release

3195d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

twigtemplatestemplate enginephptransformersphptransformer

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[symfony/ux-twig-component

Twig components for Symfony

22018.6M322](/packages/symfony-ux-twig-component)[symfony/ux-live-component

Live components for Symfony

1647.0M117](/packages/symfony-ux-live-component)[symfony/ux-toolkit

A tool to easily create a design system in your Symfony app with customizable, well-crafted Twig components

1682.8k1](/packages/symfony-ux-toolkit)[mati365/ckeditor5-symfony

CKEditor 5 integration for Symfony

261.9k](/packages/mati365-ckeditor5-symfony)[daycry/twig

twig for Codeigniter 4

155.3k2](/packages/daycry-twig)

PHPackages © 2026

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