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.7k41MITPHPPHP &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 3w 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

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

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

4873d 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

[timber/timber

Create WordPress themes with beautiful OOP code and the Twig Template Engine

5.7k3.6M127](/packages/timber-timber)[twig/intl-extra

A Twig extension for Intl

36667.2M319](/packages/twig-intl-extra)[symfony/ux-twig-component

Twig components for Symfony

21917.2M304](/packages/symfony-ux-twig-component)[symfony/ux-live-component

Live components for Symfony

1636.5M113](/packages/symfony-ux-live-component)[twig/cssinliner-extra

A Twig extension to allow inlining CSS

22919.7M81](/packages/twig-cssinliner-extra)[twig/inky-extra

A Twig extension for the inky email templating engine

16713.2M70](/packages/twig-inky-extra)

PHPackages © 2026

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