
Php Modernization
This is a comprehensive PHP modernization workflow that brings legacy codebases up to PHP 8.1 through 8.5 standards. It bundles introspection scripts, reference docs for everything from property hooks to PSR-15 middleware, and a modernize_loop.py that runs Rector, PHPStan, and PHP-CS-Fixer in coordination. The guardrails are the real value here: it won't let you apply readonly to Doctrine entities, won't raise PHPStan levels without regenerating baselines, and enforces strict_types everywhere. Built by Netresearch, it includes 20+ reference files covering edge cases like Doctrine embeddables, API Platform quirks, and the PHPUnit 12 to 13 mock versus stub distinction. Use it when you need to modernize a PHP project methodically instead of guessing which 8.x features are safe to adopt.
- install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
- 6
- skills.sh installs
- 450
- GitHub stars
- 62
- last updated
- Aug 21, 2026
Install
$ npx -y skills add netresearch/php-modernization-skill --skill php-modernization --agent claude-codeInstalls into .claude/skills of the current project.
Files
PHP Modernization
Agent contract
- Discover:
uv run ${CLAUDE_SKILL_DIR}/scripts/introspect.py(cheap), orverify_php_project.py --summary(full, withagent_actions[]). - Drill:
... --check PM-XXper finding. Full output when triaging >3. - Apply:
uv run ${CLAUDE_SKILL_DIR}/scripts/modernize_loop.py --mode dry-run. Review transcript before applying. - References: load on demand; do not pre-load.
Reference routing
Sponsors
Details
- Repository
- github.com/netresearch/php-modernization-skill
- Categories
- Frontend Development, PHP & Laravel
- First seen
- Jun 3, 2026