PHPackages                             fyre/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. fyre/inflector

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

fyre/inflector
==============

An inflection library.

v4.0.1(8mo ago)0259↓83.3%4MITPHP

Since Oct 26Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/elusivecodes/FyreInflector)[ Packagist](https://packagist.org/packages/fyre/inflector)[ RSS](/packages/fyre-inflector/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (10)Dependencies (4)Versions (24)Used By (4)

FyreInflector
=============

[](#fyreinflector)

**FyreInflector** is a free, open-source inflection library for *PHP*.

Table Of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Basic Usage](#basic-usage)
- [Methods](#methods)

Installation
------------

[](#installation)

**Using Composer**

```
composer require fyre/inflector

```

In PHP:

```
use Fyre\Utility\Inflector;
```

Basic Usage
-----------

[](#basic-usage)

```
$inflector = new Inflector();
```

Methods
-------

[](#methods)

**Camelize**

Convert a delimited string into CamelCase.

- `$string` is the input string.
- `$delimiter` is a string representing the delimiter, and will default to "*\_*".

```
$camelized = $inflector->camelize($string, $delimiter);
```

**Classify**

Convert a table\_name to a singular ClassName.

- `$tableName` is a string representing the table name.

```
$className = $inflector->classify($tableName);
```

**Dasherize**

Convert a string into kebab-case.

- `$string` is the input string.

```
$dasherized = $inflector->dasherize($string);
```

**Humanize**

Convert a delimited string into Human Readable Form.

- `$string` is the input string.
- `$delimiter` is a string representing the delimiter, and will default to "*\_*".

```
$title = $inflector->humanize($string, $delimiter);
```

**Pluralize**

Get the plural form of a word.

- `$string` is the input string.

```
$plural = $inflector->pluralize($string);
```

**Rules**

Add inflection rules.

- `$type` is a string representing the inflection type, and must be one of either "*plural*", "*singular*", "*irregular*" or "*uncountable*".
- `$rules` is an array containing the rules to add.

```
$inflector->rules($type, $rules);
```

**Singularize**

Get the singular form of a word.

- `$string` is the input string.

```
$singular = $inflector->singularize($string);
```

**Tableize**

Convert a ClassName to a pluralized table\_name.

- `$className` is a string representing the class name.

```
$tableName = $inflector->tableize($className);
```

**Underscore**

Convert a string into snake\_case.

- `$string` is the input string.

```
$underscored = $inflector->underscore($string);
```

**Variable**

Convert a delimited string into camelBack.

- `$string` is the input string.

```
$variable = $inflector->variable($string);
```

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance61

Regular maintenance activity

Popularity11

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 94.7% of commits — single point of failure

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 ~66 days

Recently: every ~22 days

Total

23

Last Release

245d ago

Major Versions

v1.0.5 → v2.02023-07-14

v2.0.8 → v3.02024-11-01

v3.0.5 → v4.02025-10-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/fad81fd5941e3a637c8a5749d05ae3ed9314d5e2fee57f59c3d9ec3b41259c6b?d=identicon)[elusivecodes](/maintainers/elusivecodes)

---

Top Contributors

[![elusivecodes](https://avatars.githubusercontent.com/u/18050480?v=4)](https://github.com/elusivecodes "elusivecodes (18 commits)")[![pm-michael](https://avatars.githubusercontent.com/u/49225527?v=4)](https://github.com/pm-michael "pm-michael (1 commits)")

---

Tags

inflectioninflectorphp

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

PHPackages © 2026

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