standards-php
Installation
SKILL.md
Core Workflow
- Identify the type — DTO, Value Object, Exception, Service, or general class
- Apply the pattern — use the reference guides below for the correct structure
- Type everything — parameters, properties, return types including
voidand nullable - Validate — run static analysis and tests before finishing
Reference Guide
| Topic | Reference | Load When |
|---|---|---|
| DTOs | references/dto.md |
Transferring data between layers, API responses, command objects |
| Value Objects | references/value-objects.md |
Domain primitives, typed wrappers around scalars |
| Exceptions | references/exceptions.md |
Custom exception classes, error context |