#Design Patterns
11 articles
Learning Design Patterns with PHP - State Pattern
Learn the State pattern to switch behavior dynamically by encapsulating state-specific processing in separate classes.
Learning Design Patterns with PHP - Adapter Pattern
Master the Adapter pattern to change interfaces without modifying original classes using composition and wrappers in PHP.
Learning Design Patterns with PHP - Bridge Pattern
Understand the Bridge pattern to separate functional and implementation extensions using composition in PHP application design.
Learning Design Patterns with PHP - Mediator Pattern
Explore the Mediator pattern to coordinate complex interactions between objects and improve relationship visibility in PHP.
Learning Design Patterns with PHP - Strategy
Implement the Strategy pattern to switch algorithms dynamically, reduce conditionals, and follow OCP in your PHP code.
Learning Design Patterns with PHP - Factory, Factory Method, Abstract Factory
Learn Factory, Factory Method, and Abstract Factory patterns to centralize object creation and eliminate conditional branches.
DI and Service Locator
Implement dependency injection patterns. Compare DI and Service Locator with constructor injection examples for loosely coupled code.
Learning Design Patterns with PHP - Adapter ~Modifying APIs~
Learn the Adapter pattern to reuse existing code without modification while adapting incompatible interfaces flexibly.
Learning Design Patterns with PHP - Basics of Object-Oriented Programming
Master OOP fundamentals including inheritance, interfaces, traits, static properties, and methods for design pattern study.
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.
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.