← All Skills
🐘
PHP Modernization Agent Skill
An assess-first modernization workflow for PHP 8.1–8.5 projects. It covers PHPStan, Rector, PER-CS, DTOs, enums, readonly boundaries, Symfony, and Doctrine while keeping risky bulk rewrites behind a dry-run and review gate.
Key Features
- Project inventory and checkpoint gaps
- Safe Rector/PHPStan rehearsal
- PHP 8.1–8.5 type modernization
- Doctrine, Symfony, and testing boundaries
Installation
For Claude Code, add netresearch/claude-code-marketplace and install php-modernization@netresearch-claude-code-marketplace. Any Agent Skills client can run npx skills add https://github.com/netresearch/php-modernization-skill --skill php-modernization.
How to Use
In a PHP 8.1+ Composer project, run the read-only introspector or verifier first, inspect evidence per checkpoint, then generate a rehearsal with modernize_loop.py --mode dry-run. Apply only after reviewing the transcript, and validate with the project's static analysis, tests, and diff.
Requirements
Requires PHP 8.1+ and Composer. The full workflow invokes project tools such as PHPStan, Rector, PHP-CS-Fixer, PHPat, and Infection; uv is recommended for Python helper dependencies. Code is MIT and skill content is CC-BY-SA-4.0. It reads and edits source, must avoid generated/vendor/cache paths, and keeps human approval before bulk changes.
Related Skills