php-modernization
CommunityModernize PHP apps with safe, scalable upgrades.
Authordirnbauer
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps teams modernize legacy PHP applications to PHP 8.x, ensuring stronger type safety, improved maintainability, and compatibility with modern tools.
Core Features & Use Cases
- Modernization Patterns: Adopt constructor property promotion, readonly classes, unions, and attributes to simplify code and reduce boilerplate.
- Static Analysis & Standards: Enforce PHPStan level 10, Rector transformations, and PHP-CS-Fixer rules to maintain code quality.
- Migration Guidance: Provides a structured approach to upgrading projects across PHP 8.2–8.4, DTO/VO patterns, and PSR/PER compliance.
- Use Case: Example: upgrade a legacy class to use constructor property promotion and typed properties, then validate with PHPStan.
Quick Start
Run the PHP modernization skill on a sample legacy class to convert to PHP 8.x style and run static analysis.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: php-modernization Download link: https://github.com/dirnbauer/webconsulting-skills/archive/main.zip#php-modernization Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.