Php code for Head First Design Pattern with the power of namespaces also this repo is open for any other patterns in the future.
Run composer install
to generate the psr-4 autoloader.
- Strategy pattern.
- Observer Pattern (Keeping your objects in the know).
- Decorator Pattern (Decorating Objects).
- Factory Pattern (Backing with oo Goodness).
- Singleton Pattern (One of a kind object).
- Command Pattern (Encapsulating Invocation).
- Adapter Pattern.
- Facade Pattern.
- Template Method Pattern (Encapsulating Algorithms).
- Iterator Pattern.
- Composite Pattern.
- Proxy Pattern.
- State Pattern.