#Design Pattern

7 articles

Learning Design Patterns with PHP - State Pattern
Application 2019-04-20

Learning Design Patterns with PHP - State Pattern

Learn the State pattern to switch behavior dynamically by encapsulating state-specific processing in separate classes.

#GoF#PHP#Design Pattern#State Pattern
Learning Design Patterns with PHP - Bridge Pattern
Application 2019-02-01

Learning Design Patterns with PHP - Bridge Pattern

Understand the Bridge pattern to separate functional and implementation extensions using composition in PHP application design.

#GoF#PHP#Design Pattern#Bridge Pattern
Learning Design Patterns with PHP - Strategy
Application 2018-12-09

Learning Design Patterns with PHP - Strategy

Implement the Strategy pattern to switch algorithms dynamically, reduce conditionals, and follow OCP in your PHP code.

#Design Pattern#PHP#GoF#Strategy Pattern
DI and Service Locator
Application 2018-06-05

DI and Service Locator

Implement dependency injection patterns. Compare DI and Service Locator with constructor injection examples for loosely coupled code.

#DI#Service Locator#Design Pattern
Learning Design Patterns with PHP - Adapter ~Modifying APIs~
Application 2017-10-01

Learning Design Patterns with PHP - Adapter ~Modifying APIs~

Learn the Adapter pattern to reuse existing code without modification while adapting incompatible interfaces flexibly.

#PHP#Adapter Pattern#Design Pattern
Learning Design Patterns with PHP - Singleton: Limiting Instances
Application 2017-10-01

Learning Design Patterns with PHP - Singleton: Limiting Instances

Understand the Singleton pattern to control instance creation, restrict access, and manage single object state in PHP.

#Design Pattern#PHP#Singleton Pattern
Learning Design Patterns with PHP - Template Method ~Filling in the Blanks~
Application 2017-10-01

Learning Design Patterns with PHP - Template Method ~Filling in the Blanks~

Discover the Template Method pattern to aggregate common processes in superclasses and abstract specific subclass implementations.

#Design Pattern#PHP#Template Method Pattern