Trivially pluralise or singularise strings in twig
- PHP 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github/workflows | ||
| tests | ||
| .gitignore | ||
| CODE_OF_CONDUCT.md | ||
| composer.json | ||
| InflectExtension.php | ||
| LICENSE.md | ||
| phpunit.xml.dist | ||
| README.md | ||
Twig Inflector
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.