Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/silasyudi/design-patterns-symfony
- Owner: silasyudi
- Created: 2022-06-24T01:58:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-09T01:39:02.000Z (over 2 years ago)
- Last Synced: 2024-10-03T11:16:34.416Z (about 1 month ago)
- Language: PHP
- Size: 56.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)