Last Updated: February 25, 2016
·
508
· mishak87

Still doing pluralization "by hand"?

composer require doctrine/inflector:1.0
use Doctrine\Common\Inflector\Inflector;

# ...

Inflector::pluralize("elephant");

Inflector::singularize("elephants");