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

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

davedevelopment/twig-inflection
===============================

Twig filters for inflection

1.0(13y ago)425.6k41MITPHPPHP &gt;=5.3.2CI failing

Since Feb 19Pushed 6y ago1 watchersCompare

[ Source](https://github.com/davedevelopment/twig-inflection)[ Packagist](https://packagist.org/packages/davedevelopment/twig-inflection)[ Docs](http://github.com/davedevelopment/twig-inflection)[ RSS](/packages/davedevelopment-twig-inflection/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (1)

TwigInflection
==============

[](#twiginflection)

pluralize
---------

[](#pluralize)

```
{{ "chicken"|pluralize }}

=> chickens

{{ rows.length }} {{ "row"|pluralize(rows.length) }}

=> 1 row
=> 2 rows

{{ users.length }} {{ "person"|pluralize(users.length, "users") }}

=> 1 person
=> 2 users
```

singularize
-----------

[](#singularize)

The opposite of pluralize, working in the same manner

```
{{ "chickens"|singularize }}

=> chicken
```

Contributing
------------

[](#contributing)

Get in touch before hacking on anything, I've no idea what I might be doing, the whole library may have changed since my last push :)

Copyright
---------

[](#copyright)

Copyright (c) 2013 Dave Marshall. See LICENCE for further details

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

4828d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/13995e7848e828651a1ad3be8e239b56963a31d30c4589cd1188b69caa1b3d4f?d=identicon)[davedevelopment](/maintainers/davedevelopment)

---

Top Contributors

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

---

Tags

twiginflectorinflectionpluralizetwig-extensionpluralise

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[twig/extra-bundle

A Symfony bundle for extra Twig extensions

91292.0M313](/packages/twig-extra-bundle)[twig/intl-extra

A Twig extension for Intl

36663.2M218](/packages/twig-intl-extra)[twig/string-extra

A Twig extension for Symfony String

21946.0M132](/packages/twig-string-extra)[twig/cssinliner-extra

A Twig extension to allow inlining CSS

23018.5M53](/packages/twig-cssinliner-extra)[symfony/ux-twig-component

Twig components for Symfony

21814.8M161](/packages/symfony-ux-twig-component)[twig/html-extra

A Twig extension for HTML

777.6M41](/packages/twig-html-extra)

PHPackages © 2026

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