Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/pavelloparev/design-patterns

Contains examples of design patterns that implemented in php
https://github.com/pavelloparev/design-patterns

design-pattern design-patterns examples oop php phpunit

Last synced: 10 days ago
JSON representation

Contains examples of design patterns that implemented in php

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.org/PavelLoparev/design-patterns.svg?branch=master)](https://travis-ci.org/PavelLoparev/design-patterns)

# Design Patterns
Repository contains a list of design patterns implemented in php. All examples was given from ["Design Patterns"](http://shop.oreilly.com/product/9780596007126.do) book.

# Creational
* [Abstract factory](https://github.com/PavelLoparev/design-patterns/tree/master/src/AbstractFactory)
* [Factory method](https://github.com/PavelLoparev/design-patterns/tree/master/src/FactoryMethod)
* [Factory](https://github.com/PavelLoparev/design-patterns/tree/master/src/Factory)
* [Singleton](https://github.com/PavelLoparev/design-patterns/tree/master/src/Singleton)

# Structural
* [Adapter](https://github.com/PavelLoparev/design-patterns/tree/master/src/Adapter)
* [Composite](https://github.com/PavelLoparev/design-patterns/tree/master/src/Composite)
* [Decorator](https://github.com/PavelLoparev/design-patterns/tree/master/src/Decorator)
* [Facade](https://github.com/PavelLoparev/design-patterns/tree/master/src/Facade)

# Behavioral
* [Command](https://github.com/PavelLoparev/design-patterns/tree/master/src/Command)
* [Iterator](https://github.com/PavelLoparev/design-patterns/tree/master/src/Iterator)
* [Observer](https://github.com/PavelLoparev/design-patterns/tree/master/src/Observer)
* [Strategy](https://github.com/PavelLoparev/design-patterns/tree/master/src/Strategy)
* [Template method](https://github.com/PavelLoparev/design-patterns/tree/master/src/TemplateMethod)

# Tests
`$ composer install`

`$ ./vendor/bin/phpunit`

# License
GPLv3. See LICENSE file.