SOLID Principles in PHP

0
Language

Level

Beginner

Access

Paid

Certificate

Paid

SOLID represents a series of guidelines that developers can use to, if done well, simplify and clarify their code. While certainly not laws, understanding these concepts will make you a better developer.

Add your review

Single Responsibility

The most popular of the SOLID design principles, the single responsibility principle dictates that a class should have only one reason to change. To illustrate this a bit more, let’s dig into a simple example.

Open-Closed

Open-Closed? Huh? This is one of those principles that developers often skip over. Don’t! These techniques are paramount to mature design.

Liskov Substitution

Coined by Barbara Liskov, this principle states that any implementation of an abstraction (interface) should be substitutable in any place that the abstraction is accepted.

Interface Segregation

The Interface Segregation Principle states that a client should never be forced to implement an interface that it doesn’t use. As you’ll find, this all comes down to knowledge. Learn what I mean by that in this lesson.

Dependency Inversion

There’s a common misunderstanding that “dependency inversion” is simply another way to say “dependency injection.” However, the two are not the same. So let’s dive in and figure this out!

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 “SOLID Principles in PHP”

×

    Your Email (required)

    Report this page
    SOLID Principles in PHP
    SOLID Principles 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.