Chapter 4 Design Patterns

In this chapter, you’ll learn some essential design principles that will form the keystone of many architectural decisions you’ll make along your application’s development path.

As with the real world, repeated tasks have best practices—you put your clothes through the washing machine before sticking them in the dryer or on the clothesline, right? Similarly, common code architecture problems have best-practice solutions; these are known as design patterns.

What Are Design Patterns?

Hammer: nail. Screwdriver: screw. You need the right tool for the right job. Design patterns are really just a bunch of tools in your toolbox; sometimes you’ll find one that fits the job, sometimes you need to use more than ...

Get PHP Master now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.