PHPackages                             apapsch/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. [Localization &amp; i18n](/categories/localization)
4. /
5. apapsch/twig-extensions

ActiveLibrary[Localization &amp; i18n](/categories/localization)

apapsch/twig-extensions
=======================

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

1.6.0(6y ago)02.4kMITPHP

Since Aug 28Pushed 6y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (16)Used By (0)

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

[](#twig-extensions-repository)

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

Fork this repository, add your extension, and request a pull.

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

[](#more-information)

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

Changes from upstream
---------------------

[](#changes-from-upstream)

This is a long term fork from twigphp/Twig-extensions, because some change that is important to me won't be merged.

- Twig\_Extensions\_Node\_Trans: Replaces consecutive whitespace and line breaks with a single space. This is similar to the default HTML text node behavior and allows you to have normal text as translation messages, which may span multiple lines. This change was not merged upstream, because it may break existing translation messages. It's useful if you are accustomed to gettext style translation messages and want to have HTML text node behavior.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

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

Total

14

Last Release

2511d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d247d65712d0d682d8765517d6c287b90a0dfc4a4cd472fa16981f9df611bc2b?d=identicon)[apapsch](/maintainers/apapsch)

---

Top Contributors

[![fabpot](https://avatars.githubusercontent.com/u/47313?v=4)](https://github.com/fabpot "fabpot (130 commits)")[![umpirsky](https://avatars.githubusercontent.com/u/208957?v=4)](https://github.com/umpirsky "umpirsky (3 commits)")[![joserobleda](https://avatars.githubusercontent.com/u/1263865?v=4)](https://github.com/joserobleda "joserobleda (2 commits)")[![Garfield-fr](https://avatars.githubusercontent.com/u/48578?v=4)](https://github.com/Garfield-fr "Garfield-fr (2 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)")[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (2 commits)")[![jpetitcolas](https://avatars.githubusercontent.com/u/688373?v=4)](https://github.com/jpetitcolas "jpetitcolas (1 commits)")[![kriswallsmith](https://avatars.githubusercontent.com/u/33886?v=4)](https://github.com/kriswallsmith "kriswallsmith (1 commits)")[![MaartenW](https://avatars.githubusercontent.com/u/1092133?v=4)](https://github.com/MaartenW "MaartenW (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)")[![Seldaek](https://avatars.githubusercontent.com/u/183678?v=4)](https://github.com/Seldaek "Seldaek (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)")

---

Tags

i18ntext

### Embed Badge

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

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

###  Alternatives

[symfony/string

Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way

1.8k724.1M827](/packages/symfony-string)[symfony/intl

Provides access to the localization data of the ICU library

2.6k199.8M1.1k](/packages/symfony-intl)[gettext/gettext

PHP gettext manager

70530.2M102](/packages/gettext-gettext)[jms/translation-bundle

Puts the Symfony Translation Component on steroids

42510.8M63](/packages/jms-translation-bundle)[gettext/languages

gettext languages with plural rules

7530.3M11](/packages/gettext-languages)[phpmyadmin/twig-i18n-extension

Internationalization support for Twig via the gettext library

20949.1k3](/packages/phpmyadmin-twig-i18n-extension)

PHPackages © 2026

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