PHPackages                             mouf/html.renderer.twig-extensions - 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. mouf/html.renderer.twig-extensions

ActiveMouf-library[Templating &amp; Views](/categories/templating)

mouf/html.renderer.twig-extensions
==================================

This package contains a set of Twig extensions and utility class to ease the use of Twig templates in Mouf.

v3.0.0(3y ago)0360.7k↓33.3%7[1 PRs](https://github.com/thecodingmachine/html.renderer.twig-extensions/pulls)2MITPHPPHP ^8.0

Since Apr 17Pushed 3y ago12 watchersCompare

[ Source](https://github.com/thecodingmachine/html.renderer.twig-extensions)[ Packagist](https://packagist.org/packages/mouf/html.renderer.twig-extensions)[ Docs](http://mouf-php.com/packages/mouf/html.renderer.twig-extensions)[ RSS](/packages/mouf-htmlrenderertwig-extensions/feed)WikiDiscussions 3.0 Synced 1mo ago

READMEChangelog (8)Dependencies (11)Versions (19)Used By (2)

[![Latest Stable Version](https://camo.githubusercontent.com/aeff465fb9a17ce93b9ee20daa996de113b15a41c87a4be3e033a30b64b84861/68747470733a2f2f706f7365722e707567782e6f72672f6d6f75662f68746d6c2e72656e64657265722e747769672d657874656e73696f6e732f762f737461626c652e737667)](https://packagist.org/packages/mouf/html.renderer.twig-extensions)[![Total Downloads](https://camo.githubusercontent.com/c9ed6ccba14ef9be233c7cd11e1a913c1c16082fb43ff4f60c482d1cf6f042eb/68747470733a2f2f706f7365722e707567782e6f72672f6d6f75662f68746d6c2e72656e64657265722e747769672d657874656e73696f6e732f646f776e6c6f6164732e737667)](https://packagist.org/packages/mouf/html.renderer.twig-extensions)[![Latest Unstable Version](https://camo.githubusercontent.com/0559f0037acacf7abab2e48f17fcffc69b55f44db4634fb313a91d1eede0ee82/68747470733a2f2f706f7365722e707567782e6f72672f6d6f75662f68746d6c2e72656e64657265722e747769672d657874656e73696f6e732f762f756e737461626c652e737667)](https://packagist.org/packages/mouf/html.renderer.twig-extensions)[![License](https://camo.githubusercontent.com/126c6dcce52a82a33150cc6bb9d05dd7bd08454ec3700519925fbcbac93706c1/68747470733a2f2f706f7365722e707567782e6f72672f6d6f75662f68746d6c2e72656e64657265722e747769672d657874656e73696f6e732f6c6963656e73652e737667)](https://packagist.org/packages/mouf/html.renderer.twig-extensions)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/b3ded734e64cf7a510bfa607d917bafffe4b54c0f70dede78796755818f8be50/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f746865636f64696e676d616368696e652f68746d6c2e72656e64657265722e747769672d657874656e73696f6e732f6261646765732f7175616c6974792d73636f72652e706e673f623d312e30)](https://scrutinizer-ci.com/g/thecodingmachine/html.renderer.twig-extensions/?branch=1.0)

What is this package?
=====================

[](#what-is-this-package)

This package contains a set of classes to make Twig easier to use inside Mouf.

Twig extensions
---------------

[](#twig-extensions)

It contains [a set of Twig extensions](doc/twig_extensions.md) that can be used to add useful features in Mouf. For instance: `ValueInterface` and `HtmlElementInterface` evaluation in the Twig template, or I18n using Fine, in the template.

Extended Twig\_Environment
--------------------------

[](#extended-twig_environment)

The `Twig_Environment` is overloaded in order to be easier to configure from Mouf (the constructor proposes a set of arguments rather than a simple array).

Also, this package contains an installer that will create a `Twig_Environment` instance you can directly use.

Mouf package
------------

[](#mouf-package)

This package is part of Mouf (), an effort to ensure good developing practices by providing a graphical dependency injection framework.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community25

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 68.3% 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 ~175 days

Recently: every ~392 days

Total

19

Last Release

1264d ago

Major Versions

v1.2.0 → 2.0.x-dev2018-08-16

2.0.x-dev → 3.0.x-dev2022-12-01

PHP version history (2 changes)v1.0.0PHP &gt;=5.4.0

3.0.x-devPHP ^8.0

### Community

Maintainers

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

---

Top Contributors

[![moufmouf](https://avatars.githubusercontent.com/u/1290952?v=4)](https://github.com/moufmouf "moufmouf (41 commits)")[![xhuberty](https://avatars.githubusercontent.com/u/8350192?v=4)](https://github.com/xhuberty "xhuberty (7 commits)")[![nguyenk](https://avatars.githubusercontent.com/u/2227554?v=4)](https://github.com/nguyenk "nguyenk (3 commits)")[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (3 commits)")[![npeguin](https://avatars.githubusercontent.com/u/2227721?v=4)](https://github.com/npeguin "npeguin (2 commits)")[![homersimpsons](https://avatars.githubusercontent.com/u/16977446?v=4)](https://github.com/homersimpsons "homersimpsons (1 commits)")[![Jfb77](https://avatars.githubusercontent.com/u/209118712?v=4)](https://github.com/Jfb77 "Jfb77 (1 commits)")[![cbalda](https://avatars.githubusercontent.com/u/6704490?v=4)](https://github.com/cbalda "cbalda (1 commits)")[![lenafaure](https://avatars.githubusercontent.com/u/7765656?v=4)](https://github.com/lenafaure "lenafaure (1 commits)")

---

Tags

htmlinterfacerendertohtml

###  Code Quality

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mouf-htmlrenderertwig-extensions/health.svg)

```
[![Health](https://phpackages.com/badges/mouf-htmlrenderertwig-extensions/health.svg)](https://phpackages.com/packages/mouf-htmlrenderertwig-extensions)
```

###  Alternatives

[twig/string-extra

A Twig extension for Symfony String

22046.0M133](/packages/twig-string-extra)[twig/markdown-extra

A Twig extension for Markdown

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

A Twig extension for HTML

787.6M41](/packages/twig-html-extra)[twig/cache-extra

A Twig extension for Symfony Cache

392.1M20](/packages/twig-cache-extra)[phug/phug

Pug (ex-Jade) facade engine for PHP, HTML template engine structured by indentation

67292.2k13](/packages/phug-phug)[talesoft/tale-jade

A clean, lightweight and easy-to-use templating engine for PHP based on Jade/Pug

8919.3k5](/packages/talesoft-tale-jade)

PHPackages © 2026

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