Technology, Data and Science

PHP: Design Patterns

Write better PHP code by following these popular (and time-tested) design patterns. Developer Keith Casey introduces 11 design patterns that will help you solve common coding challenges and make your intentions clear to future architects of your application. Keith explores use cases for:

  • Accessing data with the active record and table data gateway patterns
  • Creating objects with the factory, singleton, and mock objects patterns
  • Extending code with decorator and adapter patterns
  • Structuring applications with MVC and Action-Domain-Responder patterns

Each chapter features a design pattern in a real-world coding scenario, and closes with a practice challenge to test your new skills.

Learn More