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 match expressions for exhaustive, type-safe branching
  • Modeling domain value objects as readonly classes to enforce immutability and input validation at construction time
  • Structuring command/handler pairs to keep controllers thin and business logic independently testable

PHP 8.4+ Language Features

Readonly Classes

Installs
2
GitHub Stars
14
First Seen
Apr 7, 2026
php-patterns — marvinrichter/clarc