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
More from dirnbauer/webconsulting-skills
document-processing
>-
187ai-search-optimization
>-
184typo3-content-blocks
>-
89typo3-ddev
Use when providing DDEV URLs, accessing TYPO3 backend in browser, performing any ddev command (e.g. start, stop, restart, describe, exec), setting up DDEV for TYPO3 extension development, or testing across multiple TYPO3 versions. Triggers on: ddev URLs, backend URLs, local development, docker environment, PHP version management, multi-version testing.
85webconsulting-branding
>-
78legal-impressum
>-
75