matthewbaggett / twig-extension-inflect
Trivially pluralise or singularise strings in twig.
v1.3
2021-05-16 03:53 UTC
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: 2024-11-16 11:31:14 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.