php-standards
Installation
SKILL.md
Includes composer.json and project-structure templates (src/ for library code, tests/ wired via autoload-dev, PSR-4 namespace mapping), and the core PER/PSR-1 file rules (4 spaces, LF endings, no closing ?>).
Do NOT use this skill for language syntax or feature questions — that is php-language-modern. Do NOT use it for Laravel-specific conventions, which live in the Laravel plugin.
PHP Standards (PSR / PER / Composer)
Agent Workflow (MANDATORY)
Before applying a standard, spawn 3 agents in parallel, one Agent call each with a name:
- fuse-ai-pilot:explore-codebase - Detect existing style config (
.php-cs-fixer.php,phpcs.xml),composer.jsonautoload - fuse-ai-pilot:research-expert - Verify a PSR's current status on php-fig.org before recommending it
- mcp__context7__query-docs - Cross-check composer.json schema
After changes, run fuse-ai-pilot:sniper for validation.