Trivially pluralise or singularise strings in twig
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2021-05-16 05:53:07 +02:00
.github/workflows Fix github actions? 2021-05-16 05:28:16 +02:00
tests Fix unit tests. 2021-05-16 05:26:10 +02:00
.gitignore Fix unit tests. 2021-05-16 05:26:10 +02:00
CODE_OF_CONDUCT.md Update Namespace 2021-05-16 04:46:48 +02:00
composer.json Fix unit tests. 2021-05-16 05:26:10 +02:00
InflectExtension.php Fix unit tests. 2021-05-16 05:26:10 +02:00
LICENSE.md Update Namespace 2021-05-16 04:46:48 +02:00
phpunit.xml.dist Fix autoloading 2021-05-16 05:34:33 +02:00
README.md Add credits. 2017-05-27 19:54:31 +01:00

Twig Inflector

Trivially pluralise or singularise strings in twig

Build Status

Usage:

    {{ variable|singularise }}

or

    {{ variable|pluralise }}

Credits

Built atop of Gone.io/inflection, which is in turn built upon the work of others.