php-patterns
Installation
SKILL.md
PHP Patterns
When to Activate
- Writing PHP 8.4+ source files (
.php) - Designing service/repository layers
- Reviewing PHP code for idiomatic patterns
- Working with Laravel or Symfony frameworks
- Replacing stringly-typed status comparisons with backed enums and
matchexpressions for exhaustive, type-safe branching - Modeling domain value objects as
readonlyclasses to enforce immutability and input validation at construction time - Structuring command/handler pairs to keep controllers thin and business logic independently testable