oodle/inflect
Lightweight PHP inflector for converting English words between singular and plural forms. Install via Composer and use static methods like Inflect::singularize('tests') and Inflect::pluralize('test') for quick string inflection.
Inflect is an Inflector for PHP
Add this line to your composer.json "require" section:
"require": {
...
"oodle/inflect": "*"
use Inflect\Inflect;
echo Inflect::singularize('tests');
echo Inflect::pluralize('test');
Many thanks to original author Sho Kuwamoto"
How can I help you explore Laravel packages today?