You know that Composer is a resolver for managing external project dependencies and versioning constraints, but is that all it does? With a little creativity, certainly not! In this article you’ll see how Composer can also be used as a basic build automation tool.
In this article you’ll learn how to implement the Observer Pattern, a behavioral design pattern which defines a one-to-many relationship between objects such that, when one object changes its state, all dependent objects are notified and updated automatically.
The Command Pattern encapsulates actions so you can queue different requests and then trigger them at once. This article shows you how to implement the design pattern using a simple example of a message queue.
Building things can be tough when you can’t anticipate what type of objects you’ll need to create or how to create them. The Factory Method design pattern can be applied in such situations where you have a set of component classes but won’t know exactly which one you’ll need to instantiate until runtime. This article will teach you how to implement the pattern to localize the construction of different objects.