Last Updated: February 25, 2016
·
486
· mishak87

Still doing pluralization "by hand"?

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

# ...

Inflector::pluralize("elephant");

Inflector::singularize("elephants");