PHPackages                             twig/string-extra - 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/string-extra

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

twig/string-extra
=================

A Twig extension for Symfony String

v3.24.0(6mo ago)22349.2M↓17.7%4[1 issues](https://github.com/twigphp/string-extra/issues)20MITPHPPHP &gt;=8.1.0

Since Oct 17Pushed 3w ago3 watchersCompare

[ Source](https://github.com/twigphp/string-extra)[ Packagist](https://packagist.org/packages/twig/string-extra)[ Docs](https://twig.symfony.com)[ GitHub Sponsors](https://github.com/fabpot)[ Fund](https://tidelift.com/funding/github/packagist/twig/twig)[ RSS](/packages/twig-string-extra/feed)WikiDiscussions 3.x Synced 1w ago

READMEChangelog (3)Dependencies (8)Versions (62)Used By (20)

String Extension
================

[](#string-extension)

This package is a Twig extension that provides integration with the Symfony String component. It provides the following filters:

- [`u`](https://twig.symfony.com/u): Wraps a text in a `UnicodeString` object to give access to [methods of the class](https://symfony.com/doc/current/components/string.html).
- [`slug`](https://twig.symfony.com/slug): Wraps the [`AsciiSlugger`](https://symfony.com/doc/current/components/string.html#slugger)'s `slug` method.
- [`singular`](https://twig.symfony.com/singular) and [`plural`](https://twig.symfony.com/plural): Wraps the [`Inflector`](https://symfony.com/doc/current/components/string.html#inflector) `singularize`and `pluralize` methods.

###  Health Score

71

—

ExcellentBetter than 100% of packages

Maintenance83

Actively maintained with recent releases

Popularity66

Solid adoption and visibility

Community40

Growing community involvement

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 69% 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 ~37 days

Recently: every ~9 days

Total

62

Last Release

153d ago

Major Versions

v2.15.0 → v3.3.52022-01-02

v2.15.5 → v3.5.12023-02-08

v2.15.6 → v3.7.12023-07-29

2.x-dev → v3.9.02024-02-10

3.x-dev → 4.x-dev2026-01-07

PHP version history (6 changes)v3.0.0-BETA1PHP ^7.2.9

v2.12.4PHP ^7.2.5

v2.14.0PHP &gt;=7.2.5

v3.12.0PHP &gt;=8.0.2

v3.22.0PHP &gt;=8.1.0

4.x-devPHP &gt;=8.2

### 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 (40 commits)")[![nicolas-grekas](https://avatars.githubusercontent.com/u/243674?v=4)](https://github.com/nicolas-grekas "nicolas-grekas (4 commits)")[![derrabus](https://avatars.githubusercontent.com/u/1506493?v=4)](https://github.com/derrabus "derrabus (1 commits)")[![EmilePerron](https://avatars.githubusercontent.com/u/9383532?v=4)](https://github.com/EmilePerron "EmilePerron (1 commits)")[![garak](https://avatars.githubusercontent.com/u/179866?v=4)](https://github.com/garak "garak (1 commits)")[![Guite](https://avatars.githubusercontent.com/u/277531?v=4)](https://github.com/Guite "Guite (1 commits)")[![javiereguiluz](https://avatars.githubusercontent.com/u/73419?v=4)](https://github.com/javiereguiluz "javiereguiluz (1 commits)")[![jmsche](https://avatars.githubusercontent.com/u/3929498?v=4)](https://github.com/jmsche "jmsche (1 commits)")[![kbond](https://avatars.githubusercontent.com/u/127811?v=4)](https://github.com/kbond "kbond (1 commits)")[![michaljusiega](https://avatars.githubusercontent.com/u/16488888?v=4)](https://github.com/michaljusiega "michaljusiega (1 commits)")[![noniagriconomie](https://avatars.githubusercontent.com/u/13205768?v=4)](https://github.com/noniagriconomie "noniagriconomie (1 commits)")[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (1 commits)")[![welcoMattic](https://avatars.githubusercontent.com/u/773875?v=4)](https://github.com/welcoMattic "welcoMattic (1 commits)")[![abdounikarim](https://avatars.githubusercontent.com/u/15892761?v=4)](https://github.com/abdounikarim "abdounikarim (1 commits)")[![xabbuh](https://avatars.githubusercontent.com/u/1957048?v=4)](https://github.com/xabbuh "xabbuh (1 commits)")[![dennistobar](https://avatars.githubusercontent.com/u/1218182?v=4)](https://github.com/dennistobar "dennistobar (1 commits)")

---

Tags

htmlphpstringtemplatingtwigunicodestringunicodetwightml

### Embed Badge

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

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M370](/packages/easycorp-easyadmin-bundle)[symfony/twig-bridge

Provides integration for Twig with various Symfony components

2.5k225.1M709](/packages/symfony-twig-bridge)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M195](/packages/sulu-sulu)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6941.5M395](/packages/drupal-core-recommended)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M506](/packages/shopware-core)[twig/markdown-extra

A Twig extension for Markdown

12115.5M114](/packages/twig-markdown-extra)

PHPackages © 2026

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