PHP Objects, Patterns, and Practice

Chapter 9: Generationg objects

Employees 1
Employees 2
Employees 3
Singleton Pattern
Factory Method Pattern, Bad Implementation
Factory Method Pattern, Correct Implementation
Abstract Factory Pattern

Chapter 10: Patterns for flexible object programming

Composite Pattern

Listing 1
Listing 2
Listing 3
Listing 4
Listing 5
Listing 6

Decorator Pattern

Listing 7
Listing 8
Listing 9

Facade Pattern

Listing 10

Miscellaneous examples

Resolve IP Addresses Configuration Manager
Object Tools
OO vs. Procedural
Shop Product
Person
Using Reflection API