PHP Modernization Skill — Development skill for Claude Code
PHP 8.x modernization: type safety, enums, DTOs, PHPStan, Rector.
How to install PHP Modernization Skill
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open netresearch/php-modernization-skill and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What PHP Modernization Skill does
Expert patterns for modernizing PHP applications to PHP 8.x with type safety, PSR/PER compliance, static analysis tools, and Symfony best practices.
Alternatives in Development
- PHP Lsp — PHP /plugin install php-lsp@claude-plugins-official 14k ★
- /autopilot — Autonomous hunt loop with deterministic scope safety and configurable checkpoints 1.2k ★
- Claude-code-safety-net Rules Reference — Custom rules reference for defining safe/dangerous command patterns 1.2k ★
README
PHP Modernization Skill
Expert patterns for modernizing PHP applications to PHP 8.x with type safety, PSR/PER compliance, static analysis tools, and Symfony best practices.
Compatibility
This is an **Agent Skill** following the [open standard](https://agentskills.io) originally developed by Anthropic and released for cross-platform use.
**Supported Platforms:**
- Claude Code (Anthropic)
- Cursor
- GitHub Copilot
- Other skills-compatible AI agents
Skills are portable packages of procedural knowledge that work across any AI agent supporting the Agent Skills specification.
Features
- PHP 8.x Features: Constructor property promotion, readonly properties and classes, named arguments, enums and match expressions, attributes (replacing annotations), union and intersection types, nullsafe operator
- Static Analysis Tools: PHPStan (level 9+), PHPat (architecture testing), Rector (automated refactoring), PHP-CS-Fixer (coding style)
- PSR/PER Compliance: Enforces all active PHP-FIG standards (PSR-1, 3, 4, 6, 7, 11, 12, 13, 14, 15, 16, 17, 18, 20) and PER Coding Style
- Type Safety Patterns: DTOs and Value Objects over arrays, generic collection typing via PHPDoc, strict typing enforcement, PHPStan level 10 compliance, runtime type validation
- Symfony Integration: Dependency injection patterns, service configuration (YAML to PHP), event dispatcher and PSR-14, form handling modernization, security component updates
Installation
Marketplace (Recommended)
Add the [Netresearch marketplace](https://github.com/netresearch/claude-code-marketplace) once, then browse and install skills:
# Claude Code
/plugin marketplace add netresearch/claude-code-marketplace
npx ([skills.sh](https://skills.sh))
Install with any [Agent Skills](https://agentskills.io)-compatible agent:
npx skills add https://github.com/netresearch/php-modernization-skill --skill php-modernization
Download Release
...
Related Skills
Symfony Check
Run all quality checks (PHP-CS-Fixer, PHPStan, tests) on the Symfony project
Laravel API Skill
A comprehensive Claude skill for building production-grade Laravel REST APIs with clean architecture, type saf
Computer Use
Computer use for Grok Build: a plugin and MCP server that let the agent see the screen, click and type in desk
Generate Ddd
Generate DDD components. Creates entities, value objects, aggregates, commands, queries, repositories, domain
Slim
Software Lifecycle Improvement & Modernization
Create Dto
Generates DTOs with Freezed for API request/response serialization
Related Agents
PHP Reviewer
PHP 8.5 and Clean Architecture code review specialist — DDD, hexagonal, PSR-12, PHPStan, security analysis
Auth Reviewer
Authentication and authorization security reviewer. Analyzes authentication mechanisms, access control, CSRF p
Clean Code Refactor
Use this agent when you need to refactor existing code, rewrite a module for better maintainability, decompose