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

https://github.com/sassman/edu-pattern-catalog-php

providing some useful design patterns with some small use case illustrations mostly for education.
https://github.com/sassman/edu-pattern-catalog-php

command-pattern decorator-pattern design-patterns education php

Last synced: 6 months ago
JSON representation

providing some useful design patterns with some small use case illustrations mostly for education.

Awesome Lists containing this project

README

          

Design Pattern Catalog
======================

[![Build Status](https://travis-ci.org/sassman/pattern-catalog-php.svg?branch=master)](https://travis-ci.org/sassman/pattern-catalog-php)
[![Code Climate](https://codeclimate.com/github/sassman/pattern-catalog-php/badges/gpa.svg)](https://codeclimate.com/github/sassman/pattern-catalog-php)
[![Test Coverage](https://codeclimate.com/github/sassman/pattern-catalog-php/badges/coverage.svg)](https://codeclimate.com/github/sassman/pattern-catalog-php/coverage)

Purpose
-------

This whole project is educational material. The shown code is not production grade code.
It should illustrate the concepts and guide to clean solutions.

Decorator Pattern
-----------------

Illustrating the Decorator Pattern in the context of String IO. How single units of responsibility can be added to existing
classes. So that after all a combination of all possibility can be used.

The problems that are solved are the following

* class explosion for every combination of possibility
* [more than one responsibility per class](https://www.hanselminutes.com/145/solid-principles-with-uncle-bob-robert-c-martin)