PHP Patterns
Whizark edited this page Aug 21, 2013
·
10 revisions
A PHP 5.4+ pattern collection that will cover design patterns, anti-patterns, closure patterns, refactoring patterns.
(This project is just a pattern catalog. To learn the patterns themselves, it would be better to refer to other resources.)
- 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.)