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

ActiveRobo-tasks[Templating &amp; Views](/categories/templating)

heydon/robo-twig
================

Allow the processing of templates via robo

2.x-dev(5y ago)129.4k↓66.7%1GPL-2.0-or-laterPHPPHP &gt;=7.1.3

Since Dec 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/gheydon/robo-twig)[ Packagist](https://packagist.org/packages/heydon/robo-twig)[ RSS](/packages/heydon-robo-twig/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (2)Used By (1)

robo-twig
=========

[](#robo-twig)

Use twig as a templating system system for robo

Usage
=====

[](#usage)

- Use with template in memory, and displaying to the screen

```
    $this->taskTwig()
      ->setTemplatesArray('index', 'Hello {{ name }}!')
      ->setContext('name', 'Fabien')
      ->applyTemplate('index', '')
      ->run();

```

- Use with template file and write to destination

```
    $this->taskTwig()
      ->setTemplatesDirectory('./templates')
      ->setContext('name', 'Fabien')
      ->applyTemplate('index.twig', 'index.txt')
      ->applyTemplate('index.html.twig', 'index.html')
      ->run();

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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

1978d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3139a7bcdce887a3f2714aeb0529321ff16c0702971f5a07c438185be667c7f0?d=identicon)[gheydon](/maintainers/gheydon)

---

Top Contributors

[![gheydon](https://avatars.githubusercontent.com/u/70891?v=4)](https://github.com/gheydon "gheydon (15 commits)")

### Embed Badge

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

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

###  Alternatives

[twig/intl-extra

A Twig extension for Intl

36663.2M220](/packages/twig-intl-extra)[rcrowe/twigbridge

Adds the power of Twig to Laravel

9105.9M50](/packages/rcrowe-twigbridge)[twig/string-extra

A Twig extension for Symfony String

21946.0M132](/packages/twig-string-extra)[twig/cssinliner-extra

A Twig extension to allow inlining CSS

23018.5M53](/packages/twig-cssinliner-extra)[symfony/ux-twig-component

Twig components for Symfony

21814.8M161](/packages/symfony-ux-twig-component)[twig/markdown-extra

A Twig extension for Markdown

12114.3M83](/packages/twig-markdown-extra)

PHPackages © 2026

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