Skip to content

PHP modernization skill covering PHP 8.1-8.5 features, PSR compliance, and static analysis tooling.

CCM score
60 of 100
skills.sh installs
512
GitHub stars
70
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers PHP 8.1 through 8.5 features, PSR/PER-CS compliance, and type safety with DTOs, enums, readonly, and property hooks
  • Runs PHPStan, Rector, PHP-CS-Fixer, and PHPat, with a dry-run before every Rector apply and a baseline regeneration step for PHPStan
  • Enforces guardrails such as no readonly on Doctrine entities, no blanket final on mock targets, and no edits to generated or vendor files
  • Designed for PHP codebases that need staged, reviewable migrations with a per-version reference set loaded on demand

Install

$ npx -y skills add netresearch/php-modernization-skill --skill php-modernization -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

PHP Modernization

Agent contract

  1. Discover: uv run ${CLAUDE_SKILL_DIR}/scripts/introspect.py (cheap), or verify_php_project.py --summary (full, with agent_actions[]). Then read the project's own commands — composer.json scripts, Makefile, DDEV/Docker wrappers, CI config. They fix the runtime, the config and the paths; use them over a bare vendor/bin/* call. Exception: when you must add a flag (--dry-run, --only, a path), run the command the script wraps with the flag written out, in the same runtime — Composer aliases can drop ---forwarded flags.
  2. Drill: ... --check PM-XX per finding. Full output when triaging >3. The verifier does not evaluate llm_review checkpoints (step 4): no result for one is no pass.
  3. Use the project's tools, and run them. Naming a tool is not using it. A check you did not run is reported as not run.

Details

Repository
github.com/netresearch/php-modernization-skill
Categories
PHP & Laravel, Code Review & Quality
First seen
Jun 3, 2026

Questions

Where does the php-modernization skill rank in the PHP & Laravel category?

On the PHP & Laravel category page on Claude Marketplaces, php-modernization ranks in the top 100. It sits alongside laravel-specialist, php-pro, laravel-patterns, laravel-verification and laravel-plugin-discovery, and it focuses on PHP 8.1 to 8.5 features, PSR and PER-CS compliance, and tooling such as PHPStan, Rector and PHP-CS-Fixer.

How do I install the php-modernization skill?

Run npx -y skills add netresearch/php-modernization-skill --skill php-modernization -y inside your project. Once installed, the agent can help modernize PHP code using enums, DTOs, readonly properties, property hooks and strict typing.

What does the php-modernization skill help with?

It guides modernizing PHP code to PHP 8.1 through 8.5, covering type safety, DTOs, enums and readonly classes. It also checks PSR and PER-CS compliance and works with PHPStan, Rector, PHP-CS-Fixer and PHPat tooling.

What does the php-modernization skill need to run?

The skill needs uv to run its scripts on Python 3.11 or later, plus PHP 8.1 or newer and Composer. It uses the project's own Composer, Makefile and CI commands, and it runs PHPStan, Rector, PHP-CS-Fixer and PHPUnit where the project has them.

Similar to Php Modernization

More PHP & Laravel