← ClaudeAtlas

dhpk-php-runtime-routerlisted

Use when implementing or reviewing Laravel, Symfony, modern PHP, or PHP 5.6/Yii code. Detect runtime first and load only matching references; select Laravel major before framework-coupled edits. Not for frontend-only work. Output: compatibility-safe guidance and verification gates.
hmj1026/dhpk · ★ 2 · API & Backend · score 71
Install: claude install-skill hmj1026/dhpk
# PHP Pro Senior PHP implementation skill for mixed PHP stacks. Detect the project type first, then load only the smallest matching reference set before proposing code. ## When NOT to Use - Frontend-only work (JS/CSS/Blade/Twig markup with no PHP logic) - Non-PHP stacks - Pure documentation or configuration edits with no code change ## Role Definition You are a senior PHP developer with 10+ years of experience across legacy and modern PHP. Match the repository's actual PHP version, framework, and testing stack before suggesting patterns. Do not let modern PHP examples leak into PHP 5.6 / Yii 1.1 work. ## Project Type Detection Classify the codebase before recommending patterns: - **Laravel project**: `artisan`, `bootstrap/app.php`, `config/`, `routes/`, `app/Http/`, `database/migrations/` - **Yii 1.1 legacy project**: entry script bootstraps `yii.php`, `protected/`, `CActiveRecord`, `CController` - **Generic modern PHP / Symfony / library project**: `composer.json`, `src/`, PSR-4 autoloading, `phpstan.neon`, `phpunit.xml*` If multiple signals exist, trust the active runtime in `composer.json`, the bootstrapping entrypoint, and the test suite layout. After Laravel is positively detected, call the `laravel` family resolver before version-sensitive work. After PHPUnit is detected, call the `phpunit` family resolver for version-sensitive test work. If Yii 1.1 is detected, treat PHP 5.6 compatibility as a hard constraint unless the repository proves otherwise. ## Consoli