PHPackages                             doctrine/inflector - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. doctrine/inflector

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

doctrine/inflector
==================

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

2.1.0(9mo ago)11.4k855.8M—9.7%138[10 issues](https://github.com/doctrine/inflector/issues)[5 PRs](https://github.com/doctrine/inflector/pulls)20MITPHPPHP ^7.2 || ^8.0CI passing

Since Jan 10Pushed 1mo ago17 watchersCompare

[ Source](https://github.com/doctrine/inflector)[ Packagist](https://packagist.org/packages/doctrine/inflector)[ Docs](https://www.doctrine-project.org/projects/inflector.html)[ Fund](https://www.doctrine-project.org/sponsorship.html)[ Patreon](https://www.patreon.com/phpdoctrine)[ RSS](/packages/doctrine-inflector/feed)WikiDiscussions 2.1.x Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (37)Used By (20)

Doctrine Inflector
==================

[](#doctrine-inflector)

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

[![Build Status](https://github.com/doctrine/inflector/workflows/Continuous%20Integration/badge.svg)](https://github.com/doctrine/inflector/actions?query=workflow%3A%22Continuous+Integration%22+branch%3A4.0.x)[![Code Coverage](https://camo.githubusercontent.com/f03cbfc54c80320b1d125cea54af1f7cc0133f049c79f97cdfd16b4a0d8f3bfa/68747470733a2f2f636f6465636f762e696f2f67682f646f637472696e652f696e666c6563746f722f6272616e63682f322e302e782f67726170682f62616467652e737667)](https://codecov.io/gh/doctrine/inflector/branch/2.0.x)

###  Health Score

77

—

ExcellentBetter than 100% of packages

Maintenance76

Regular maintenance activity

Popularity87

Widely adopted with strong download metrics

Community55

Growing community involvement

Maturity80

Battle-tested with a long release history

 Bus Factor4

4 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~155 days

Recently: every ~59 days

Total

32

Last Release

55d ago

Major Versions

1.4.1 → 2.0.12020-05-11

1.4.2 → 2.0.22020-05-25

1.4.3 → 2.0.32020-05-29

1.4.x-dev → 2.0.42021-10-22

2.2.x-dev → 3.0.x-dev2026-02-04

PHP version history (7 changes)v1.0PHP &gt;=5.3.2

v1.2.0PHP ^7.0

v1.3.0PHP ^7.1

1.4.0PHP ^7.2

1.4.2PHP ^7.2 || ^8.0

1.4.4PHP ^7.1 || ^8.0

3.0.x-devPHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/892698bb1d3f6dae0e3a44abe3e26920ddb4eb000c6c583c87b4db5e5027e166?d=identicon)[beberlei](/maintainers/beberlei)

---

Top Contributors

[![greg0ire](https://avatars.githubusercontent.com/u/657779?v=4)](https://github.com/greg0ire "greg0ire (118 commits)")[![alcaeus](https://avatars.githubusercontent.com/u/383198?v=4)](https://github.com/alcaeus "alcaeus (49 commits)")[![jwage](https://avatars.githubusercontent.com/u/97422?v=4)](https://github.com/jwage "jwage (44 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (35 commits)")[![beberlei](https://avatars.githubusercontent.com/u/26936?v=4)](https://github.com/beberlei "beberlei (24 commits)")[![guilhermeblanco](https://avatars.githubusercontent.com/u/208883?v=4)](https://github.com/guilhermeblanco "guilhermeblanco (24 commits)")[![SenseException](https://avatars.githubusercontent.com/u/859964?v=4)](https://github.com/SenseException "SenseException (22 commits)")[![Ocramius](https://avatars.githubusercontent.com/u/154256?v=4)](https://github.com/Ocramius "Ocramius (16 commits)")[![malarzm](https://avatars.githubusercontent.com/u/4947711?v=4)](https://github.com/malarzm "malarzm (16 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (10 commits)")[![Majkl578](https://avatars.githubusercontent.com/u/144181?v=4)](https://github.com/Majkl578 "Majkl578 (8 commits)")[![derrabus](https://avatars.githubusercontent.com/u/1506493?v=4)](https://github.com/derrabus "derrabus (7 commits)")[![Slamdunk](https://avatars.githubusercontent.com/u/152236?v=4)](https://github.com/Slamdunk "Slamdunk (6 commits)")[![jbergler](https://avatars.githubusercontent.com/u/698597?v=4)](https://github.com/jbergler "jbergler (5 commits)")[![jasny](https://avatars.githubusercontent.com/u/100821?v=4)](https://github.com/jasny "jasny (5 commits)")[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (4 commits)")[![ntzm](https://avatars.githubusercontent.com/u/3888578?v=4)](https://github.com/ntzm "ntzm (4 commits)")[![vdauchy](https://avatars.githubusercontent.com/u/26772554?v=4)](https://github.com/vdauchy "vdauchy (3 commits)")[![DanJFletcher](https://avatars.githubusercontent.com/u/12234879?v=4)](https://github.com/DanJFletcher "DanJFletcher (3 commits)")[![Pablo1Gustavo](https://avatars.githubusercontent.com/u/34045117?v=4)](https://github.com/Pablo1Gustavo "Pablo1Gustavo (3 commits)")

---

Tags

phppluralmanipulationinflectorinflectionstringslowercasewordssingularuppercase

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/doctrine-inflector/health.svg)

```
[![Health](https://phpackages.com/badges/doctrine-inflector/health.svg)](https://phpackages.com/packages/doctrine-inflector)
```

###  Alternatives

[glowy/strings

Strings Component provide a fluent, object-oriented interface for working with multibyte string, allowing you to chain multiple string operations together using a more readable syntax compared to traditional PHP strings functions.

183.4k2](/packages/glowy-strings)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
