Design Pattern: Proxy Pattern in PHP

Proxy pattern is used provide a placeholder or surrogate for an original object. Operation performed the proxy, calls operation(s) from the original object. This proxy object existing between the client and the original object to provide security and/or access control and/or additional functionality. This article demonstrates Proxy pattern implementations in PHP.

Design Pattern: Chain of Responsibility Pattern in PHP

Chain of Responsibility pattern gives responsibility of a process handling to more than one object(a chain of objects) so that the sender and receiver of the request remains decoupled. The chain of objects pushes the processing to the next step until the processing is complete. This article demonstrates Chain of Responsibility pattern implementations in PHP.

Design Pattern: Iterator Pattern in PHP

Iterator pattern is used to access items sequentially from an aggregated object. The client does not need to know the underlying details of the iterator, it can just use the iterator easily. This pattern makes it very easy for the client to traverse through a list of objects, one by one. It can also implement the traversing process in any order (ascending or descending) if required. This article demonstrates the Iterator pattern implementation in PHP.

Design Pattern: Interpreter Pattern in PHP

Interpreter pattern represents the grammar or syntax rules of an expression. Parsing the expression and evaluation is implemented in the pattern implementation. The implementation can be for a specific syntax of a specific type of expression. A specific set of rules is defined for parsing and evaluation/operation. In this article, we are discussing the implementation of the Interpreter pattern in PHP.

Design Pattern: Mediator Pattern in PHP

Mediator pattern encapsulates the logic of communication between a bunch of defined objects. A mediator object is used for that. The mediator works as a middleman between the set of objects. This prevents the objects(colleagues) from communicating directly with each other, and ensures loose coupling. This article demonstrates Mediator pattern implementations in PHP.