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

ActiveSpress-plugin[Templating &amp; Views](/categories/templating)

ghislainphu/spress-twig-extensions
==================================

Add twig/extensions to Spress.

0.1.3(7y ago)04731MITPHP

Since May 20Pushed 7y ago1 watchersCompare

[ Source](https://github.com/GhislainPhu/spress-twig-extensions)[ Packagist](https://packagist.org/packages/ghislainphu/spress-twig-extensions)[ RSS](/packages/ghislainphu-spress-twig-extensions/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

Spress Twig Extensions
======================

[](#spress-twig-extensions)

[![Spress 2 ready](https://camo.githubusercontent.com/79b536fea9b26f54bab281b7abb70f6e7659a2f658f26ad23be1fd32af07be20/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f537072657373253230322d72656164792d627269676874677265656e2e7376673f7374796c653d666c6174)](https://camo.githubusercontent.com/79b536fea9b26f54bab281b7abb70f6e7659a2f658f26ad23be1fd32af07be20/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f537072657373253230322d72656164792d627269676874677265656e2e7376673f7374796c653d666c6174)

This [Spress](https://github.com/spress/Spress) plugin provides extra [Twig](https://github.com/twigphp/Twig) filters from [twig/extensions](https://github.com/twigphp/Twig-extensions).

Getting Started
---------------

[](#getting-started)

Run:

```
composer require ghislainphu/spress-twig-extensions
```

Add this line to your `config.yml`:

```
twig_extensions: [ array, intl, text ]
```

Features
--------

[](#features)

- [shuffle](https://github.com/twigphp/Twig-extensions/blob/master/doc/array.rst) (array)
- [localizeddate](https://github.com/twigphp/Twig-extensions/blob/master/doc/intl.rst#localizeddate) (intl)
- [localizednumber](https://github.com/twigphp/Twig-extensions/blob/master/doc/intl.rst#localizednumber) (intl)
- [localizedcurrency](https://github.com/twigphp/Twig-extensions/blob/master/doc/intl.rst#localizedcurrency) (intl)
- [truncate](https://github.com/twigphp/Twig-extensions/blob/master/doc/text.rst#truncating-text) (text)
- [wordwrap](https://github.com/twigphp/Twig-extensions/blob/master/doc/text.rst#wrapping-words) (text)

Limitations
-----------

[](#limitations)

`date` and `i18n` extensions are not yet supported.

License
-------

[](#license)

This project is licensed under the MIT License.

See [LICENSE.md](https://github.com/GhislainPhu/spress-twig-extensions/blob/master/LICENSE.md) for more informations.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 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

Every ~258 days

Total

4

Last Release

2918d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/450791?v=4)[Ghislain Phu](/maintainers/GhislainPhu)[@GhislainPhu](https://github.com/GhislainPhu)

---

Top Contributors

[![GhislainPhu](https://avatars.githubusercontent.com/u/450791?v=4)](https://github.com/GhislainPhu "GhislainPhu (19 commits)")

---

Tags

plugintwigspress

### Embed Badge

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

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

###  Alternatives

[shoot/shoot

Shoot aims to make providing data to your templates more manageable

40229.9k2](/packages/shoot-shoot)[dms/twig-extension-bundle

DMS Twig Extension Bundle, leverages Fabien Potencier's extra twig extensions for your website.

19297.1k](/packages/dms-twig-extension-bundle)[oofbar/craft-twig-toolbox

Create your own Twig helpers.

161.8k](/packages/oofbar-craft-twig-toolbox)

PHPackages © 2026

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