Registry / utility / symfony-inflector

symfony-inflector

JSON →
library5.4.47phppackagistunverified

Converts words between their singular and plural forms (English only).

composer require symfony/inflector
INSTALL
IMPORT
SIG · SYMFONY-INFLECTOR
S
symfony-inflector
utilityphpv5.4.47
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Inflector
use Symfony\Component\Inflector\Inflector;

Pluralize and singularize English words.

use Symfony\Component\Inflector\Inflector; $plural = Inflector::pluralize('child'); echo $plural; // children $singular = Inflector::singularize('children'); echo $singular; // child
Debug
Known issues
gotchaDeprecated in Symfony 5.4, use String component instead.
fix
Use Symfony\Component\String\Inflector\EnglishInflector.
affects: >=5.4
Upgrade
Version history
5.4.47latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources