inflect
inflect copied to clipboard
Inflector for PHP
Inflect
Inflect is an Inflector for PHP
Installation:
Add this line to your composer.json "require" section:
composer.json
"require": {
...
"mmucklo/inflect": "*"
Usage:
use Inflect\Inflect;
echo Inflect::singularize('tests');
echo Inflect::pluralize('test');
Notes:
Many thanks to original author Sho Kuwamoto"