PHPackages                             rhdevelopment/inflecta - 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. rhdevelopment/inflecta

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

rhdevelopment/inflecta
======================

Inflecta: lightweight string inflector utilities for modern PHP projects.

v0.1.0(6mo ago)00MITPHPPHP ^8.2

Since Oct 24Pushed 6mo agoCompare

[ Source](https://github.com/hadley8899/string-inflector)[ Packagist](https://packagist.org/packages/rhdevelopment/inflecta)[ Docs](https://github.com/hadley8899/string-inflector)[ RSS](/packages/rhdevelopment-inflecta/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Inflecta
========

[](#inflecta)

Inflecta is a lightweight PHP 8.2+ string inflector that helps you convert between camelCase, snake\_case, kebab-case, and title case while handling simple pluralization, singularization, and slug generation. It is perfect for REST APIs, CLI tooling, and framework-agnostic utilities that need consistent naming conventions.

Why Inflecta?
-------------

[](#why-inflecta)

- Zero dependencies and PSR-4 autoload ready.
- Accurate delimiter normalization across spaces, underscores, and hyphens.
- Case conversion helpers for camel, pascal, snake, constant, kebab, and title casing.
- Simple pluralization and singularization rules for common English words.
- Table/class naming helpers (`classify`, `tableize`) plus human-readable transformations and SEO-friendly slug creation.

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

[](#installation)

```
composer require ryan/inflecta
```

Inflecta targets PHP 8.2 or newer. The package ships with a PHPUnit test suite for easy integration into continuous integration pipelines.

Quick Start
-----------

[](#quick-start)

```
