php-modernization

Installation
SKILL.md

PHP Modernization Skill

Modernize PHP applications to PHP 8.x with type safety, PSR compliance, and static analysis.

Expertise Areas

  • PHP 8.x: Constructor promotion, readonly, enums, match, attributes, union/intersection types, #[Override], typed constants, #[SensitiveParameter], property hooks
  • PSR/PER Compliance: Active PHP-FIG standards (PSR-3/4/6/7/11/14/15/16/17/18/20, PER-CS)
  • Static Analysis: PHPStan (level 9+, treatPhpDocTypesAsCertain: false), PHPat, Rector, PHP-CS-Fixer
  • Type Safety: DTOs/VOs over arrays, generics via PHPDoc, copy-on-write awareness
  • Pitfalls: DOMDocument UTF-8 encoding, PHP-CS-Fixer deprecated aliases

Reference Documentation

Topic Reference File
PHP 8.0-8.5 features references/php8-features.md
PSR/PER compliance references/psr-per-compliance.md
PHPStan levels references/phpstan-compliance.md
Related skills
Installs
71
GitHub Stars
29
First Seen
Jan 24, 2026