Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/silasyudi/design-patterns-symfony

Demo project for Design Patterns on Symfony
https://github.com/silasyudi/design-patterns-symfony

Last synced: 17 days ago
JSON representation

Demo project for Design Patterns on Symfony

Awesome Lists containing this project

README

        

# Design Patterns on Symfony

Demo project for Design Patterns on Symfony

## Dependencies
- PHP 8.1+
- Symfony 6
- PHPUnit 9.5

## Attention

Some examples may be didactic and not functional, and should not be used in real-world production projects.

## 1. Strategy

Allows you to choose or interchange algorithms at runtime

[Source Code](/src/Strategy)
[Tests](/tests/Strategy)

## 2. Template Method

Allows you to avoid code duplication and determine a skeleton of operations for a family of algorithms

[Source Code](/src/TemplateMethod)
[Tests](/tests/TemplateMethod)

## 3. Facade

Allows you to encapsulate a complex subsystem behind a unique interface

[Source Code](/src/Facade)
[Tests](/tests/Facade)

## 4. Abstract Factory

Allows you to create a family of related objects

[Source Code](/src/AbstractFactory)
[Tests](/tests/AbstractFactory)