Learn each of the original gang of four design patterns, and how they are relevant to modern PHP and Laravel development. Written by a working developer who uses these patterns every day, you will easily be able to implement each pattern into your workflow and improve your development. Each pattern is covered with full examples of how it can be used.
Too often design patterns are explained using tricky concepts, when in fact they are easy to use and can enrich your everyday development. Design Patterns in PHP and Laravel aims to break down tricky concepts into humorous and easy-to-recall details, so that you can begin using design patterns easily in your everyday work with PHP and Laravel.
This book teaches you design patterns in PHP and Laravel using real-world examples and plenty of humor.
What You Will Learn
Use the original gang of four design patterns in your PHP and Laravel development
How each pattern should be used
Solve problems when using the patterns
Remember each pattern using mnemonics
Who This Book Is For
People using Laravel and PHP to do their job and want to improve their understanding of design patterns.
About the Author
About the Technical Reviewer
Introduction
Chapter 1: Laravel Basics
Chapter 2: Let’s Grow a SOLID Garden
Chapter 3: Abstract Factory
Chapter 4: Builder
Chapter 5: The Factory Method
Chapter 6: Prototype
Chapter 7: Singleton
Chapter 8: Simple Factory Method
Chapter 9: Adapter
Chapter 10: Bridge
Chapter 11: Composite
Chapter 12: Decorator
Chapter 13: Facade
Chapter 14: Flyweight
Chapter 15: Proxy
Chapter 16: Chain of Responsibility
Chapter 17: Command
Chapter 18: Interpreter
Chapter 19: Iterator
Chapter 20: Mediator
Chapter 21: Memento
Chapter 22: Observer
Chapter 23: State
Chapter 24: Strategy
Chapter 25: Template Method
Chapter 26: Visitor
Chapter 27: More Resources
Index