Use when working with ANY PHP modernization task: upgrading PHP 8.1+, adding strict types, configuring PHPStan/Rector/PHP-CS-Fixer, refactoring to enums/DTOs/readonly, improving type safety, or reviewing PHP code quality. Triggers on: PHP upgrade, modernize, type safety, PHPStan, Rector, PHP-CS-Fixer, enum, DTO, readonly, strict_types.
From php-modernizationnpx claudepluginhub netresearch/claude-code-marketplace --plugin php-modernizationThis skill is limited to using the following tools:
checkpoints.yamlreferences/adapter-registry-pattern.mdreferences/core-rules.mdreferences/migration-strategies.mdreferences/multi-version-adapters.mdreferences/php-cs-fixer-deprecations.mdreferences/php8-features.mdreferences/phpstan-compliance.mdreferences/psr-per-compliance.mdreferences/request-dtos.mdreferences/static-analysis-tools.mdreferences/symfony-patterns.mdreferences/type-safety.mdreferences/typo3-psr-patterns.mdscripts/verify-php-project.shGuides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Configures VPN and dedicated connections like Direct Connect, ExpressRoute, Interconnect for secure on-premises to AWS, Azure, GCP, OCI hybrid networking.
Modernize PHP applications to PHP 8.x with type safety, PSR compliance, and static analysis.
#[Override], typed constants, #[SensitiveParameter], property hookstreatPhpDocTypesAsCertain: false), PHPat, Rector, PHP-CS-Fixer| 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 |
| Static analysis tools | references/static-analysis-tools.md |
| PHP-CS-Fixer deprecations | references/php-cs-fixer-deprecations.md |
| Type safety, DTOs | references/type-safety.md |
| Request DTOs | references/request-dtos.md |
| Adapter registry | references/adapter-registry-pattern.md |
| Multi-version adapters | references/multi-version-adapters.md |
| Symfony patterns | references/symfony-patterns.md |
| TYPO3 PSR patterns | references/typo3-psr-patterns.md |
| Migration planning | references/migration-strategies.md |
Always run vendor/bin/php-cs-fixer fix --dry-run 2>&1 | grep -A 20 "Detected deprecations" to check for deprecated rules.
Verify a project: scripts/verify-php-project.sh /path/to/project
| Tool | Requirement |
|---|---|
| PHPStan | Level 9 minimum, level 10 recommended |
| PHPat | Required for defined architectures |
| Rector | Required for automated modernization |
| PHP-CS-Fixer | Required with @PER-CS ruleset |
See references/core-rules.md for code examples and scoring criteria.
declare(strict_types=1) in all files@PER-CS) with no deprecated aliasestreatPhpDocTypesAsCertain: false, level 10 for new projects)#[Override] on overridden methods (PHP 8.3+)#[SensitiveParameter] on password/secret params (PHP 8.2+)Contributing: https://github.com/netresearch/php-modernization-skill