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

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

twig/extensions
===============

Common additional features for Twig that do not directly belong in core

v1.5.4(7y ago)1.5k83.0M—1.2%27320MITPHP

Since Aug 28Pushed 5y ago35 watchersCompare

[ Source](https://github.com/twigphp/Twig-extensions)[ Packagist](https://packagist.org/packages/twig/extensions)[ RSS](/packages/twig-extensions/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (19)Used By (20)

Twig Extensions Repository
==========================

[](#twig-extensions-repository)

**WARNING**: This repository is abandoned in favor of Twig Core Extra extensions.

- *ArrayExtension*: `shuffle` filter -&gt; no equivalent
- *DateExtension*: `time_diff` filter -&gt; no equivalent
- *I18nExtension*: `trans` filter -&gt; use the [trans](https://symfony.com/doc/current/reference/twig_reference.html#trans) filter from the Symfony Translator extension (symfony/twig-bridge)
- *IntlExtension*: `localizeddate`, `localizednumber`, `localizedcurrency`filters: use the Twig intl extra extension: [format\_date](https://twig.symfony.com/doc/3.x/filters/format_date.html), [format\_number](https://twig.symfony.com/doc/3.x/filters/format_number.html), [format\_currency](https://twig.symfony.com/doc/3.x/filters/format_currency.html), ...
- *TextExtension*: `truncate`, `wordwrap` filters: use the Twig string extra extension: [u filter](https://twig.symfony.com/doc/3.x/filters/u.html)

This repository hosts Twig Extensions that do not belong to the core but can be nonetheless interesting to share with other developers.

More Information
----------------

[](#more-information)

Read the [documentation](http://twig-extensions.readthedocs.io/) for more information.

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity77

Solid adoption and visibility

Community56

Growing community involvement

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 78.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 ~195 days

Total

14

Last Release

2477d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/47313?v=4)[Fabien Potencier](/maintainers/fabpot)[@fabpot](https://github.com/fabpot)

---

Top Contributors

[![fabpot](https://avatars.githubusercontent.com/u/47313?v=4)](https://github.com/fabpot "fabpot (160 commits)")[![OskarStark](https://avatars.githubusercontent.com/u/995707?v=4)](https://github.com/OskarStark "OskarStark (8 commits)")[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (3 commits)")[![umpirsky](https://avatars.githubusercontent.com/u/208957?v=4)](https://github.com/umpirsky "umpirsky (3 commits)")[![nicolas-grekas](https://avatars.githubusercontent.com/u/243674?v=4)](https://github.com/nicolas-grekas "nicolas-grekas (2 commits)")[![Trainmaster](https://avatars.githubusercontent.com/u/2514421?v=4)](https://github.com/Trainmaster "Trainmaster (2 commits)")[![Garfield-fr](https://avatars.githubusercontent.com/u/48578?v=4)](https://github.com/Garfield-fr "Garfield-fr (2 commits)")[![joserobleda](https://avatars.githubusercontent.com/u/1263865?v=4)](https://github.com/joserobleda "joserobleda (2 commits)")[![llmuculusll](https://avatars.githubusercontent.com/u/883346?v=4)](https://github.com/llmuculusll "llmuculusll (1 commits)")[![MauricioFauth](https://avatars.githubusercontent.com/u/120970?v=4)](https://github.com/MauricioFauth "MauricioFauth (1 commits)")[![mhor](https://avatars.githubusercontent.com/u/4103719?v=4)](https://github.com/mhor "mhor (1 commits)")[![ornicar](https://avatars.githubusercontent.com/u/140370?v=4)](https://github.com/ornicar "ornicar (1 commits)")[![pyguerder](https://avatars.githubusercontent.com/u/6534215?v=4)](https://github.com/pyguerder "pyguerder (1 commits)")[![qpleple](https://avatars.githubusercontent.com/u/774546?v=4)](https://github.com/qpleple "qpleple (1 commits)")[![rgazelot](https://avatars.githubusercontent.com/u/1488251?v=4)](https://github.com/rgazelot "rgazelot (1 commits)")[![ricardclau](https://avatars.githubusercontent.com/u/613725?v=4)](https://github.com/ricardclau "ricardclau (1 commits)")[![romainneutron](https://avatars.githubusercontent.com/u/137574?v=4)](https://github.com/romainneutron "romainneutron (1 commits)")[![soullivaneuh](https://avatars.githubusercontent.com/u/1698357?v=4)](https://github.com/soullivaneuh "soullivaneuh (1 commits)")[![sroze](https://avatars.githubusercontent.com/u/804625?v=4)](https://github.com/sroze "sroze (1 commits)")[![Szymciosek](https://avatars.githubusercontent.com/u/3597951?v=4)](https://github.com/Szymciosek "Szymciosek (1 commits)")

---

Tags

phptwigtwig-extensioni18ntext

### Embed Badge

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

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

###  Alternatives

[jasny/twig-extensions

A set of useful Twig filters

10710.2M8](/packages/jasny-twig-extensions)[froala/wysiwyg-editor-php-sdk

PHP SDK for Froala WYSIWYG Editor

431.5M](/packages/froala-wysiwyg-editor-php-sdk)[text/template

Simple and secure string-template-engine (Twig-like syntax) with nested if/elseif/else, loops, filters. Simple OOP api: Just one class doing the job (2-lines of code). Fast and secure: No code-generation, no eval'ed() code. Extensible by callbacks. Fully tested. Rich examples included.

38201.1k10](/packages/text-template)[jblond/twig-trans

Twig 3 translation extension

13169.9k2](/packages/jblond-twig-trans)[jodit/yii2-jodit

Jodit - awesome WYSIWYG Editor like widget for Yii2

1621.5k](/packages/jodit-yii2-jodit)[techguy/laravel-ckeditor

JavaScript WYSIWYG web text editor (for laravel).

1113.5k](/packages/techguy-laravel-ckeditor)

PHPackages © 2026

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