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

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

puli/twig-extension
===================

A Puli extension for the Twig templating system.

1.0.0-beta8(10y ago)836.5k916MITPHPPHP ^5.3.9|^7.0

Since Dec 3Pushed 9y ago3 watchersCompare

[ Source](https://github.com/puli/twig-extension)[ Packagist](https://packagist.org/packages/puli/twig-extension)[ Docs](http://puli.io)[ RSS](/packages/puli-twig-extension/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (9)Dependencies (8)Versions (10)Used By (16)

Puli Extension for Twig
=======================

[](#puli-extension-for-twig)

[![Build Status](https://camo.githubusercontent.com/a7039cd9d6a6eefe0e126092dba53412b6dee6bed4ce66a0852a02884d2ab403/68747470733a2f2f7472617669732d63692e6f72672f70756c692f747769672d657874656e73696f6e2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/puli/twig-extension)[![Build status](https://camo.githubusercontent.com/e00425408733ebff7a587963dbf8605ccef95ad41eb1a7384b6b2f4c9fd8783b/68747470733a2f2f63692e6170707665796f722e636f6d2f6170692f70726f6a656374732f7374617475732f626e6e666a3337316a703774623967782f6272616e63682f6d61737465723f7376673d74727565)](https://ci.appveyor.com/project/webmozart/twig-extension/branch/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/3df8ff4ca6debaeecfcb8f37b8115875f1aab45e50b6cc1b8db8d0c0252c3fe5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70756c692f747769672d657874656e73696f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/puli/twig-extension/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/d6c6bec87b68088696db9b317ef6970bf15f90601ef23436d7303d351faaa9f1/68747470733a2f2f706f7365722e707567782e6f72672f70756c692f747769672d657874656e73696f6e2f762f737461626c652e706e67)](https://packagist.org/packages/puli/twig-extension)[![Total Downloads](https://camo.githubusercontent.com/024bdc829d1fb96be35ab37def41fbe5aaac7958adf04b7e2176c691a151c868/68747470733a2f2f706f7365722e707567782e6f72672f70756c692f747769672d657874656e73696f6e2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/puli/twig-extension)[![Dependency Status](https://camo.githubusercontent.com/237e7f038d70bd3b457f76ad85d1a66361db05831e99a571c18318d81d4b1b95/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7068702f70756c693a747769672d657874656e73696f6e2f312e302e302f62616467652e706e67)](https://www.versioneye.com/php/puli:twig-extension/1.0.0)

Latest release: [1.0.0-beta8](https://packagist.org/packages/puli/twig-extension#1.0.0-beta8)

PHP &gt;= 5.3.9

With this extension for the [Twig templating engine](http://twig.sensiolabs.org), you can refer to template files through [Puli](http://puli.io) paths:

```
echo $twig->render('/acme/blog/views/show.html.twig');
```

Read [the Puli documentation](http://docs.puli.io/en/latest/index.html) if you want to learn more about Puli.

Authors
-------

[](#authors)

- [Bernhard Schussek](http://webmozarts.com) a.k.a. [@webmozart](https://twitter.com/webmozart)
- [The Community Contributors](https://github.com/puli/twig-extension/graphs/contributors)

Installation/Documentation
--------------------------

[](#installationdocumentation)

Follow the guide [The Puli Extension for Twig](http://docs.puli.io/en/latest/extensions/twig.html) to install the extension in your project. This guide will tell you all you need to know to use the extension.

Contribute
----------

[](#contribute)

Contributions to are very welcome!

- Report any bugs or issues you find on the [issue tracker](https://github.com/puli/issues/issues).
- You can grab the source code at Puli’s [Git repository](https://github.com/puli/twig-extension).

Support
-------

[](#support)

If you are having problems, send a mail to  or shout out to [@webmozart](https://twitter.com/webmozart) on Twitter.

License
-------

[](#license)

All contents of this package are licensed under the [MIT license](LICENSE).

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community29

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.4% 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 ~51 days

Recently: every ~57 days

Total

9

Last Release

3813d ago

PHP version history (2 changes)1.0.0-alpha1PHP &gt;=5.3.9

1.0.0-beta8PHP ^5.3.9|^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/00803e109877ea9de0995e81c928871a595781bd6ea227092bfd7c6df5af58f0?d=identicon)[webmozart](/maintainers/webmozart)

---

Top Contributors

[![webmozart](https://avatars.githubusercontent.com/u/176399?v=4)](https://github.com/webmozart "webmozart (103 commits)")[![EmanueleMinotto](https://avatars.githubusercontent.com/u/417201?v=4)](https://github.com/EmanueleMinotto "EmanueleMinotto (7 commits)")[![tgalopin](https://avatars.githubusercontent.com/u/1651494?v=4)](https://github.com/tgalopin "tgalopin (5 commits)")[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (4 commits)")[![harikt](https://avatars.githubusercontent.com/u/120454?v=4)](https://github.com/harikt "harikt (2 commits)")[![hason](https://avatars.githubusercontent.com/u/288535?v=4)](https://github.com/hason "hason (1 commits)")[![fabpot](https://avatars.githubusercontent.com/u/47313?v=4)](https://github.com/fabpot "fabpot (1 commits)")[![cbourgois](https://avatars.githubusercontent.com/u/56223?v=4)](https://github.com/cbourgois "cbourgois (1 commits)")[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)

PHPackages © 2026

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