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.
- Host: GitHub
- URL: https://github.com/sassman/edu-pattern-catalog-php
- Owner: sassman
- License: mit
- Created: 2017-09-08T17:12:29.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-17T15:00:07.000Z (about 8 years ago)
- Last Synced: 2025-03-26T14:19:34.992Z (9 months ago)
- Topics: command-pattern, decorator-pattern, design-patterns, education, php
- Language: PHP
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE-OF-CONDUCT.md
Awesome Lists containing this project
README
Design Pattern Catalog
======================
[](https://travis-ci.org/sassman/pattern-catalog-php)
[](https://codeclimate.com/github/sassman/pattern-catalog-php)
[](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)