PHP Modernization
PHP 8.1-8.5 modernization workflow with a real discovery script, checklist, and hard guardrails.
Test report
- Verdict
- Tested · Works
- Score
- Tested
- Jul 14, 2026
- Environment
- Claude Code 2.x (agent harness)
- Upstream re-checked
- Aug 10, 2026 · 7a35df6
⚠ The author changed this skill after we tested it. The verdict below describes the version we ran on Jul 14, 2026; it's queued for a re-test.
Ran the bundled verify_php_project.py for real against the repo's own generic-composer-minimal fixture (no uv available, ran via plain python3) -- its 9 agent_actions checkpoint IDs matched the repo's own golden expected/verifier.json exactly, byte-for-byte on the substantive fields.
Scored on four weighted criteria — install, triggering, output vs. baseline, docs. How scoring works
- Installs cleanly 5/5
- Triggers reliably 5/5
- Output vs. baseline 7/10
- Docs & honesty 4/5
What PHP Modernization does
Drives PHP codebases toward PSR/PER-CS compliance and PHP 8.1-8.5 idioms (readonly, enums, DTOs, property hooks) using a bundled Python discovery/verification script plus 18 topic-specific reference docs and explicit guardrails (never blanket-readonly Doctrine entities, always Rector --dry-run first). Triggers on PHP modernization, PHPStan/Rector/PHP-CS-Fixer work, or type-safety refactors.
How to install PHP Modernization
git clone https://github.com/netresearch/php-modernization-skill
cd php-modernization-skill
mkdir -p ~/.claude/skills
cp -r skills/php-modernization ~/.claude/skills/php-modernization
Skills live in ~/.claude/skills/ (global) or .claude/skills/
(per-project). Restart Claude Code after installing.
Commands — how to trigger PHP Modernization
-
/php-modernizationPHP 8.1-8.5 modernization workflow with a real discovery script, checklist, and hard guardrails.
It also activates on plain-language prompts like these:
-
Modernize this legacy PHP class to use readonly and enums -
Run Rector dry-run first and clean up this PHP codebase -
Convert these untyped PHP constructor properties to DTOs
Frequently asked questions
- Is the PHP Modernization skill free?
- Yes. The skill itself is free from netresearch/php-modernization-skill. SkillProof publishes the install command and an independent test verdict at no cost.
- Does PHP Modernization work with Claude Code?
- We tested it with Claude Code 2.x (agent harness) on Jul 14, 2026. Verdict: Tested · Works. Ran the bundled verify_php_project.py for real against the repo's own generic-composer-minimal fixture (no uv available, ran via plain python3) -- its 9 agent_actions checkpoint IDs matched the repo's own golden expected/verifier.json exactly, byte-for-byte on the substantive fields.
- What is the PHP Modernization SkillProof Score?
- 8.4/10 — installs cleanly 5/5, triggers reliably 5/5, output vs. baseline 7/10, docs & honesty 4/5.
- How do I install PHP Modernization?
- Copy the install command from this page, run it in your terminal, and restart Claude Code. Skills live in ~/.claude/skills/ (global) or .claude/skills/ inside a project.
- Can I use PHP Modernization with Cursor, Copilot, Gemini CLI, Codex or other AI tools?
- The SKILL.md format is native to Claude (Claude Code, Desktop, claude.ai). The instructions inside adapt to other assistants: Cursor rules, GitHub Copilot instructions, Windsurf rules, Custom GPTs, AGENTS.md for OpenAI Codex, and GEMINI.md for Google Gemini CLI — our conversion guides cover each, and the free converter on the tools page does the wrapping for you.