php

Design Patterns – Observer

The Observer is a Behavioral Design Pattern often known as Dependents or the Publish-Subscriber pattern where the subject would be the publisher and observer would be the subscriber. It defines and maintains a dependency between objects. It is used to keep consistency, or where you don’t know who needs to be notified when your Subject Design Patterns – Observer

Design Patterns – Abstract Factory

This Creational Pattern provides an interface to create families of related or dependent objects without specifying their concrete classes. This pattern could be used with other creational patterns, such as Factory Method, or could be implemented also using Prototype Pattern and a concrete factory could also be a singleton. Wow, that’s so much information in Design Patterns – Abstract Factory

Design Patterns – Configuring the project

Let’s get started Firstly I will create our skeleton to go through patterns. The project will be available at https://github.com/diegosm/designpatterns Ok, after cloning this repository on my machine, lets create some folders and files, the structure should be like the image below: Then we will create our files: composer.json phpcs.xml phpunit.xml .gitignore Now is time Design Patterns – Configuring the project