doctrine/inflector
Doctrine Inflector is a small library that can perform string manipulations with regard to uppercase/lowercase and singular/plural forms of words. observed · 2026-08-28
Health v2 · maintenance only
74/100
- Activity 88
- Release rhythm 42
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 0
- age_days: 4983
- days_rel: 388
- days_push: 73
- n_releases_24m: 2
Adoption not part of the score
11340 stars · 140 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Doctrine Inflector is a small PHP library for string inflection, handling uppercase/lowercase conversions, pluralization, singularization, and camelCase/underscore conversion. It supports multiple languages including English, Spanish, French, Turkish, and others via a factory or customizable rulesets.
Use cases
- pluralize and singularize English words in PHP
- convert camelCase strings to snake_case for database table names
- convert table names back to class names
- capitalize words with custom delimiters
- inflect words in Spanish, French, Turkish, or other supported languages
- add custom pluralization and singularization rules
When to choose
- you need word inflection (plural/singular) in a PHP project
- you need case conversion between camelCase, snake_case, and capitalized forms
- you need multilingual inflection support with extensible rules
- you want a tiny, battle-tested library with huge ecosystem adoption
When to avoid
- you need general-purpose natural language processing beyond word inflection
- your language is not among the supported ones and you cannot contribute rules
- you work outside the PHP ecosystem
Facets
library · maturity stable
nlp internationalization developer-tools developer-tools php string-manipulation pluralization singularization camelcase inflection doctrine natural-language-processing localization
7 sources
- readme: https://github.com/doctrine/inflector · fetched 2026-08-28 · d6c532a2ed15
- homepage: https://www.doctrine-project.org/projects/inflector.html · fetched 2026-08-29 · 35f55b55f67c
- site_page: https://www.doctrine-project.org/projects/doctrine-inflector/en/2.1/index.html · fetched 2026-08-29 · 1ff4b7506817
- site_page: https://www.doctrine-project.org/projects/doctrine-inflector/en/2.2/index.html · fetched 2026-08-29 · 7f805df255df
- site_page: https://www.doctrine-project.org/projects/doctrine-inflector/en/2.0/index.html · fetched 2026-08-29 · 59beff88b8ef
- site_page: https://www.doctrine-project.org/projects/doctrine-inflector/en/1.4/index.html · fetched 2026-08-29 · 0eca88b4ad2d
- site_page: https://www.doctrine-project.org/projects/doctrine-inflector/en/1.3/index.html · fetched 2026-08-29 · f90961f54d74
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| doctrine/inflector | main | 74 |
For agents
markdown · JSON · MCP: product_card(name="doctrine/inflector")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem