PHP: Design Patterns
1h 9mIntermediate2015-01-28
Authors

Keith Casey
Software development and project management
Course details
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.
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.
Skills covered
Software DesignPHPProgramming LanguagesOpen SourceSoftware DevelopmentDeep Dive (X:Y)
Concepts
0. Introduction
- 01 - Welcome
- 02 - What you should know before watching this course
- 03 - Using the exercise files
1. The Active Record Pattern
- 04 - Introducing the active record pattern
- 05 - Exploring a use case for the active record pattern
- 06 - The active record pattern in action
- 07 - Challenge - Apply the active record pattern
- 08 - Solution - Apply the active record pattern
2. The Adapter Pattern
- 09 - Introducing the adapter pattern
- 10 - Exploring a use case for the adapter pattern
- 11 - The adapter pattern in action
3. The Decorator Pattern
- 12 - Introducing the decorator pattern
- 13 - Exploring a use case for the decorator pattern
- 14 - The decorator pattern in action
- 15 - Challenge - Apply the decorator pattern
- 16 - Solution - Apply the decorator pattern
4. The Factory Pattern
- 17 - Introducing the factory pattern
- 18 - Exploring a use case for the factory pattern
- 19 - The factory pattern in action
- 20 - Challenge - Apply the factory pattern
- 21 - Solution - Apply the factory pattern
5. Mock Objects
- 22 - Introducing mock objects
- 23 - Exploring a use case for mock objects
- 24 - Mock objects in action
- 25 - Challenge - Apply mock objects
- 26 - Solution - Apply mock objects
6. The Model-View-Controller Pattern
- 27 - Introducing the model-view-controller pattern
- 28 - Exploring a use case for the model-view-controller pattern
- 29 - The model-view-controller pattern in action
- 30 - Challenge - Apply the model-view-controller pattern
- 31 - Solution - Apply the model-view-controller pattern
7. The Action-Domain-Response Pattern
- 32 - Introducing the Action-Domain-Response pattern
- 33 - Exploring a use case for the Action-Domain-Response pattern
- 34 - The Action-Domain-Response pattern in action
- 35 - Challenge - Apply the Action-Domain-Response pattern
- 36 - Solution - Apply the Action-Domain-Response pattern
8. The Publish Subscriber Pattern
- 37 - Introducing the publish subscriber pattern
- 38 - Exploring a use case for the publish subscriber pattern
- 39 - The publish subscriber pattern in action
- 40 - Challenge - Apply the publish subscriber pattern
- 41 - Solution - Apply the publish subscriber pattern
9. The Singleton Pattern
- 42 - Introducing the singleton pattern
- 43 - Exploring a use case for the singleton pattern
10. The Strategy Pattern
- 44 - Introducing the strategy pattern
- 45 - Exploring a use case for the strategy pattern
- 46 - The strategy pattern in action
- 47 - Challenge - Apply the strategy pattern
- 48 - Solution - Apply the strategy pattern
11. The Table Data Gateway Pattern
- 49 - Introducing the table data gateway pattern
- 50 - Exploring a use case for the table data gateway pattern
- 51 - The table data gateway pattern in action
- 52 - Challenge - Apply the table data gateway pattern
- 53 - Solution - Apply the table data gateway pattern
Conclusion
- 54 - Next steps
Related courses
- PHP Techniques: Pagination
- PHP: Testing Legacy Applications
- PHP: Object-Oriented Programming with Databases
- MVC Frameworks for Building PHP Web Applications
- Design the Web: CSS-Controlled SVG with PHP
- Design the Web: Adding Dynamic QR Codes
- Building APIs in PHP Using the Slim Micro Framework
- Easy PHP Projects: Time Zone Conversion