Php Modernization
Upgrade legacy PHP projects to current language versions and coding standards. This skill guides you through type declarations, PSR/PER-CS compliance, static analysis setup, and modern patterns like DTOs and enums. It covers PHP 8.1 through 8.5 features, Rector automation, PHPStan configuration, and framework-specific edges.
PHP Modernization helps you upgrade legacy PHP codebases to PHP 8.1–8.5 standards with type safety and modern tooling.
AI-generated summary based on this skill's SKILL.md
Install
dirnbauer/webconsulting-skills/php-modernization · repository language: Shell
git clone https://github.com/dirnbauer/webconsulting-skills
cp -r webconsulting-skills ~/.claude/skills/php-modernizationgenerated, unverified - the skill's exact subdirectory could not be determined; check the repository on GitHub
npx skillfed install dirnbauer/webconsulting-skills/php-modernizationFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
What does Php Modernization help me accomplish?
Php Modernization guides you through upgrading legacy PHP projects to current language versions and coding standards. The skill covers type declarations, PSR/PER-CS compliance, static analysis setup, and modern patterns like DTOs and enums across PHP 8.1 through 8.5 features, Rector automation, PHPStan configuration, and framework-specific considerations.
How can I modernize PHP code using this skill?
Php Modernization teaches you to modernize PHP code by automating refactoring through tools like Rector, configuring static analysis with PHPStan, adopting type declarations, and implementing modern language features. The skill helps you transition from older syntax to current standards while maintaining code functionality and improving maintainability.
What PHP versions does Php Modernization cover?
Php Modernization covers PHP 8.1 through 8.5 features and patterns. The skill guides you through the evolution of language capabilities across these versions, helping you leverage modern features appropriate to your target PHP version while upgrading legacy codebases.
Can Php Modernization help with refactoring old PHP?
Yes, Php Modernization specializes in refactoring old PHP codebases. It automates PHP code refactoring and version migration through tools like Rector, guides you through converting older PHP syntax to modern language features, and helps improve code quality and maintainability in legacy projects.
What standards and tools does Php Modernization address?
Php Modernization addresses PSR/PER-CS compliance standards and covers key tools including Rector for automation and PHPStan for static analysis configuration. The skill also guides you through framework-specific modernization edges and helps you establish modern coding practices across your PHP projects.