/php-patterns

A minimal and conceptual PHP 5.4+ pattern collection that *will* cover design patterns (not only GoF's), anti-patterns, closure patterns, refactoring patterns

Primary LanguagePHPMIT LicenseMIT

PHP Patterns

A PHP 5.4+ pattern collection that covers design patterns, anti-patterns, closure patterns, refactoring patterns.

Build Status Coverage Status Scrutinizer Quality Score

The Concepts

  • Minimal and Conceptual (useful as a pattern catalog)
  • Practical and Modern (following PSR-2 as possible etc.)
  • PHP-specific (with built-in features and SPL etc.)
  • Interface-oriented (but as simple as possible)
  • Testable (including test cases as examples)

(Since focusing on the core concept of each pattern, some patterns might not be the same as the originals.)