Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 451 Bytes

File metadata and controls

22 lines (14 loc) · 451 Bytes

Inflector

A package to transform english words from singular to plural and back.

Usage

Inflector\Inflector::plural('Tree'); // Trees

Inflector\Inflector::singular('Cakes'); // Cake

Inflector\Inflector::plural('Fish'); // Fish

Providers may be used to retrieve uncommon irregular words.

Inflector\Inflector::setProvider(new Inflector\JsonProvider);

Providers must implement the Inflector\ProviderInterface.