Download the PHP package rhdevelopment/inflecta without Composer
On this page you can find all versions of the php package rhdevelopment/inflecta. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rhdevelopment/inflecta
More information about rhdevelopment/inflecta
Files in rhdevelopment/inflecta
Package inflecta
Short Description Inflecta: lightweight string inflector utilities for modern PHP projects.
License MIT
Homepage https://github.com/hadley8899/string-inflector
Informations about the package 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?
- 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
Inflecta targets PHP 8.2 or newer. The package ships with a PHPUnit test suite for easy integration into continuous integration pipelines.
Quick Start
For a complete walkthrough, check the bundled example script:
Testing
Inflecta includes PHPUnit tests covering every helper:
Contributing
Issues and pull requests are welcome on GitHub. Feel free to open a ticket if you spot an edge case or have ideas for new inflection rules.
License
MIT License © Ryan / RH Development.