ai-agent

inflector – Seamlessly handle case and pluralization in PHP

Boost your PHP apps with reliable uppercase/lowercase and singular/plural string handling. Ideal for founders needing clean, automated text transformations. 11k+ GitHub stars.

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

11,331 stars143 forksPHPGuide quality 8/10 · reviewed Oct 7Updated 10/18/2026100% free · open source
What it does

Doctrine Inflector is a PHP library that helps with string manipulations, particularly in handling uppercase/lowercase and singular/plural forms of words.

When to use it
  • •When building a database-driven application and needing to convert table names to their singular or plural forms
  • •When creating a content management system and requiring standardized string formatting
  • •When developing an e-commerce platform and needing to handle product names in different cases and quantities
Ready-to-paste prompt
echo Inflector::singularize('orders'); // outputs: 'order'
Heads up: Make sure to use the correct PHP version, as Doctrine Inflector requires PHP 7.2 or higher, and also be aware that the library uses the `vendor/autoload.php` file, which needs to be included in your script
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

✅ Light setup

Installs with a command or two; your AI agent can do it for you.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/inflector && curl -fsSL https://workflowstacks.com/api/skills/inflector/claude-skill -o ~/.claude/skills/inflector/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How inflector – Seamlessly handle case and pluralization in PHP works
Codeflow
Free to inspect

Inflector – Seamlessly handle case and pluralization in PHP is a small PHP project (~2.1k lines across 49 code files, plus 23 test files). Setup is light: install PHP, run one command. Last commit 3 months ago, MIT license, has a test suite.

Size
Small codebase
~2.1k lines · 49 code files · 18 min skim
Setup
Light setup
Install PHP, run one command.
Runs on
PHP
No API keys detected
PHP 100%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    composer.json
    Dependencies and the commands it exposes
  3. 3
    src/CachedWordInflector.php
    Inside src/ — the main logic begins here
What's in each folder
src/Core code — the actual logic49 files
docs/Documentation1 files
tests/Tests — proof it works23 files
.github/CI / automation (GitHub Actions)8 files
READMEHas testsDocumentedCI checksMIT licenseUpdated 3 mo ago
Quick Actions
Details
Creator
doctrine
Language
PHP
Category
ai-agent
Published
1/10/2013

Are you the creator of this tool? and earn 85% of every sale.

Show it off in your README:

Featured on WorkflowStacks
[![Featured on WorkflowStacks](https://workflowstacks.com/api/badge/inflector.svg)](https://workflowstacks.com/skills/inflector?utm_source=github&utm_medium=badge)
🔥 Hot this week, in your inbox
Skills like this, every Monday.

The five fastest-growing open-source AI skills, ranked by GitHub star growth. One email a week, unsubscribe anytime.