Design Patterns in PHP

0
Language

Level

Beginner

Access

Paid

Certificate

Paid

A design pattern is a common solution to a common problem. Nothing more, nothing less. And, while some of these approaches might seem foreign or overwhelming to you, the important thing to remember is that, as a developer, you are in charge. That means you decide when a pattern is appropriate, and when it’s completely unnecessary. That’s the key.

Add your review

The Decorator Pattern

A decorator allows us to dynamically extend the behavior of a particular object at runtime, without needing to resort to unnecessary inheritance. Let me give you a demonstration.

Gettin’ Jiggy With Adapters

An adapter is one of the easier design patterns to learn. The reason why is because you use them in the real world all the time! In this lesson, let’s review a handful of examples to figure out how it all works.

The Template Method Pattern

I bet you’ve used the template method design pattern on multiple occassions without even realizing it! This is an easy one to understand. Let’s dig in.

Pick a Strategy

Let’s talk about the strategy design pattern and polymorphism. Like many patterns, you may find that you already use this one! You just didn’t know that it had a name!

The Chain of Responsibility

The chain of responsibility pattern is definitely an interesting one. It literally allows us to chain any number of objects, where each has the option of either handling a particular request, or deferring to the next object in the cycle.

The Specification Pattern in PHP

Though certainly not for everything, you may find situations where the specification pattern can prove to be exactly what you need. In this lesson, we’ll review the core concept, while using TDD and PHPUnit to drive our code.

The Specification Pattern in PHP: Part 2

In the previous lesson on the specification pattern, we reviewed the core fundamentals. However, we stopped just short of figuring out how to apply this concept to database queries. Let’s figure that out, while, in the process, learning how to use (and test) Eloquent outside of Laravel.

Observe This, Fool

The observer pattern is easily one of the most popular patterns in the bunch. And, luckily, it’s one of the easier ones to comprehend. Let’s review the essentials, while ultimately translating this new knowledge over to Laravel’s implementation (in version 5).

User Reviews

0.0 out of 5
0
0
0
0
0
Write a review

There are no reviews yet.

Be the first to review “Design Patterns in PHP”

×

    Your Email (required)

    Report this page
    Design Patterns in PHP
    Design Patterns in PHP
    LiveTalent.org
    Logo
    LiveTalent.org
    Privacy Overview

    This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.