Registry / utility / doctrine-inflector

doctrine-inflector

JSON →
library2.1.0phppackagistunverified

PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/plural forms of words.

composer require doctrine/inflector
INSTALL
IMPORT
SIG · DOCTRINE-INFLECTOR
D
doctrine-inflector
utilityphpv2.1.0
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.

InflectorFactory
use Doctrine\Inflector\InflectorFactory;

Creates an inflector and demonstrates pluralization/singularization.

use Doctrine\Inflector\InflectorFactory; $inflector = InflectorFactory::create()->build(); echo $inflector->pluralize('cat'); // cats echo $inflector->singularize('dogs'); // dog
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.1.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
doctrine-inflector — pip install doctrine-inflector · libregistry