BaseMax / BaseMax/EcommercePHPDDD

The design patterns in this project

Open
#5 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
6
Forks
2
PR merge metrics
No merged PRs in 30d

Description

As title, do you use any design pattern in this project? Such as factory or strategy patterns.

I don't find any design pattern in this project, but I found some SOLID design principles. They're as follows:

The `ProductController` follows the Single Responsibility Principle.

![Image](https://github.com/user-attachments/assets/fb803f66-dfc5-42c0-a2c7-85776894f841)

It seems that `Order`, `Payment` and `Product` classes follow the Interface Segregation Principle.

![Image](https://github.com/user-attachments/assets/9c9a4be5-2345-43d9-8507-9a11aeb6237a)

The `RequiredValidator` class follows the Dependency Inversion Principle.

![Image](https://github.com/user-attachments/assets/ec85a275-1c2b-4d3f-a00f-737cf0b410f3)

I'm not sure that these above principles are correct. Please check that.

And I also wonder other design patterns are used in this project.

Once we've confirmed, I think it will be great to add them in this project.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.