matthewbaggett / twig-extension-inflect
Trivially pluralise or singularise strings in twig.
Installs: 607
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/matthewbaggett/twig-extension-inflect
Requires
- php: ^7.4 || ^8.0
- matthewbaggett/inflection: ^2.1
- twig/twig: ^3.0
Requires (Dev)
- kint-php/kint: ^2.1
- phpunit/phpunit: ^9
- squizlabs/php_codesniffer: ^3.0
This package is auto-updated.
Last update: 2025-10-16 13:19:04 UTC
README
Trivially pluralise or singularise strings in twig
Usage:
{{ variable|singularise }}
or
{{ variable|pluralise }}
Credits
Built atop of Gone.io/inflection, which is in turn built upon the work of others.