Php Modernization
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
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
readonlyon Doctrine entities, no blanketfinalon 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 -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
PHP Modernization
Agent contract
- Discover:
uv run ${CLAUDE_SKILL_DIR}/scripts/introspect.py(cheap), orverify_php_project.py --summary(full, withagent_actions[]). Then read the project's own commands —composer.jsonscripts,Makefile, DDEV/Docker wrappers, CI config. They fix the runtime, the config and the paths; use them over a barevendor/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. - Drill:
... --check PM-XXper finding. Full output when triaging >3. The verifier does not evaluatellm_reviewcheckpoints (step 4): no result for one is no pass. - 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 & Laravelphp-best-practicesSkillasyrafhussin/agent-skills4K installsPHP 8.x modern patterns, PSR standards, and SOLID rules for reviewing and auditing PHP code.
php-proSkilljeffallan/claude-skills16.7K installsSenior PHP specialist for PHP 8.3+, Laravel, and Symfony that enforces strict typing and PHPStan level 9.
php-developmentSkillmindrally/skills1.2K installsExpert PHP 8+ guidance covering SOLID design, PSR standards, typing, security, and testing conventions.
wp-phpstanSkillwordpress/agent-skills5.5K installsSetup, baseline, and typing guidance for running PHPStan static analysis on WordPress plugins, themes, and sites.
fuse-phpPluginfusengine/agents36 starsExpert modern PHP 8.5/8.4 for non-Laravel projects — libraries, standalone Symfony components, Slim, API-first apps, and CLI tools, with PER Coding Style 3.1, P
magento-php-specialistSkillmaxnorm/magento2-agent-skills271 installsStrict Magento 2 PHP coding standards guide that enforces PSR-12, strict typing, and typed, DI-driven code.