ai-agent

Inflector: Simplify String Handling

Get easy string manipulation with inflector, ideal for PHP startup founders
11,345 stars139 forksPHPGuide quality 9/10Updated 6/21/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: Simplify String Handling works
Codeflow
Free to inspect

Inflector: Simplify String Handling 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? Claim your listing → and earn 85% of every sale.