An open API service indexing awesome lists of open source software.

https://github.com/dimabory/php-objects-patterns-and-practice

Practice repository while reading Matt Zandstra "PHP Objects, Patterns and Practice"
https://github.com/dimabory/php-objects-patterns-and-practice

Last synced: about 2 months ago
JSON representation

Practice repository while reading Matt Zandstra "PHP Objects, Patterns and Practice"

Awesome Lists containing this project

README

          

[![Build Status](https://travis-ci.com/dimabory/php-objects-patterns-and-practice.svg?branch=master)](https://travis-ci.com/dimabory/php-objects-patterns-and-practice)
[![PHPStan](https://img.shields.io/badge/PHPStan-enabled-brightgreen.svg?style=flat)](https://github.com/phpstan/phpstan)

# PHP Objects, Patterns, and Practice 4th Edition
https://www.amazon.com/gp/product/B00HZEZ9FU/ref=dbs_a_def_rwt_bibl_vppi_i1

## Why?
Exercising yourself!

## Contents

### Chapter 8
Composition over inheritance (or composite reuse principle)

### Chapter 9
##### Singleton
![singleton](resources/singleton.png?raw=true)
>`THIS IS CONSIDERED TO BE AN ANTI-PATTERN! FOR BETTER TESTABILITY AND MAINTAINABILITY USE DEPENDENCY INJECTION!`
##### Abstract Factory
![abstract_factory](resources/abstract_factory.png?raw=true)
##### Factory Method
![factory_method](resources/factory_method.png?raw=true)
##### Prototype
![prototype](resources/prototype.png?raw=true)

### Chapter 10
##### Composite
![composite](resources/composite.png?raw=true)

##### Decorator
![decorator](resources/decorator.png?raw=true)

##### Facade
![facade](resources/facade.png?raw=true)

### Chapter 11
##### Command
![command](resources/command.png?raw=true)

##### Obseгver
![observer](resources/observer.png?raw=true)

##### Strategy
![strategy](resources/strategy.png?raw=true)

##### Visitor
![visitor](resources/visitor.png?raw=true)