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

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

emanueleminotto/twig-inflection-bundle
======================================

Symfony 2 Bundle for davedevelopment/twig-inflection

0.1.0(10y ago)4875MITPHP

Since Aug 23Pushed 10y ago1 watchersCompare

[ Source](https://github.com/EmanueleMinotto/TwigInflectionBundle)[ Packagist](https://packagist.org/packages/emanueleminotto/twig-inflection-bundle)[ RSS](/packages/emanueleminotto-twig-inflection-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Twig Inflection Bundle
======================

[](#twig-inflection-bundle)

[![Build Status](https://camo.githubusercontent.com/b65898d6bd064ac0070616ee64be2a15abfddd0774183eb2402074fe2fb45a63/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f456d616e75656c654d696e6f74746f2f54776967496e666c656374696f6e42756e646c652e7376673f7374796c653d666c6174)](https://travis-ci.org/EmanueleMinotto/TwigInflectionBundle)[![SensioLabs Insight](https://camo.githubusercontent.com/4bf2916261624b09296f271332f5aa3d13cd73c3ee8af9329701c29a85c7dca6/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f64393935363964372d633138302d346563622d393531622d6463393464346135316535352e7376673f7374796c653d666c6174)](https://insight.sensiolabs.com/projects/d99569d7-c180-4ecb-951b-dc94d4a51e55)[![Coverage Status](https://camo.githubusercontent.com/80cc3e0b60930232a7dc6f1788cabaf56e3630bd03891ddc130abd73fed0173c/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f456d616e75656c654d696e6f74746f2f54776967496e666c656374696f6e42756e646c652e7376673f7374796c653d666c6174)](https://coveralls.io/r/EmanueleMinotto/TwigInflectionBundle)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/f6ee2e2818790423b5557c9c2effed215fdfdc386c72126fa92d250403dbe372/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f456d616e75656c654d696e6f74746f2f54776967496e666c656374696f6e42756e646c652e7376673f7374796c653d666c6174)](https://scrutinizer-ci.com/g/EmanueleMinotto/TwigInflectionBundle/)

Symfony 2 Bundle for [davedevelopment/twig-inflection](https://github.com/davedevelopment/twig-inflection).

Step 1: Download the Bundle
---------------------------

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require emanueleminotto/twig-inflection-bundle
```

This command requires you to have [Composer](https://getcomposer.org/) installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

Step 2: Enable the Bundle
-------------------------

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding the following line in the `app/AppKernel.php`file of your project:

```
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new EmanueleMinotto\TwigInflectionBundle\TwigInflectionBundle(),
        );
    }
}
```

Usage
-----

[](#usage)

**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**

The opposite of pluralize, working in the same manner

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

=> chicken
```

License
-------

[](#license)

This bundle is under the MIT license. See the complete license in the bundle:

```
Resources/meta/LICENSE

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

3959d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/30b6fbd038f22a54716027eb7ce30c6cafd8e59c138ae58b3c2516c34ccfef7f?d=identicon)[EmanueleMinotto](/maintainers/EmanueleMinotto)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3861.2M](/packages/limenius-react-bundle)[area17/laravel-auto-head-tags

Laravel Auto Head Tags helps you build the list of head elements for your app

4616.0k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.2k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

291.8k](/packages/webkinder-sproutset)[awkwardideas/switchblade

Extended blade directives for laravel

102.1k](/packages/awkwardideas-switchblade)

PHPackages © 2026

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