https://github.com/nazemmahmud/design-paterns
Repository Lists of the design patterns created in this git
https://github.com/nazemmahmud/design-paterns
decorator-pattern facade-pattern mediator-pattern memento-pattern strategy-pattern
Last synced: about 1 month ago
JSON representation
Repository Lists of the design patterns created in this git
- Host: GitHub
- URL: https://github.com/nazemmahmud/design-paterns
- Owner: NazemMahmud
- Created: 2022-05-29T03:05:08.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-25T02:49:28.000Z (over 3 years ago)
- Last Synced: 2025-12-25T14:55:49.695Z (5 months ago)
- Topics: decorator-pattern, facade-pattern, mediator-pattern, memento-pattern, strategy-pattern
- Language: PHP
- Homepage:
- Size: 32.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Design Paterns
### This is Repository Lists of the design patterns created in this git
Design patterns are typical/repeatebale solutions to commonly occuring problems in software design. \
Each pattern is like a template that can be customized to solve a particular type of problem in a code.
It can be catagolized in three sections.\
The design patterns thar are exampled in this repo:
## Structural patterns
This design pattern explains how to assemble objects and classes into larger structures, along with keeping these structures flexible and efficient.
### [Decorator](https://github.com/NazemMahmud/design-paterns-php/tree/main/Decorator)
Attach new behaviors to objects by placing these objects inside special wrapper objects that contain the behaviors.\
Check [this repo](https://github.com/NazemMahmud/design-paterns-php/tree/main/Decorator) for example
### [Facade](https://github.com/NazemMahmud/design-paterns-php/tree/main/facade)
Facade is a structural design pattern that provides a simplified interface to a library, a framework, or any other complex set of classes.\
Check [this repo](https://github.com/NazemMahmud/design-paterns-php/tree/main/facade) for example
## Behavioral patterns
This type of patterns are concerned with algorithms and the assignment of responsibilities between objects.
### [Strategy](https://github.com/NazemMahmud/strategy-pattern)
Define a family of algorithms, put each of them into a separate class, and make their objects interchangeable.\
Check [this repo](https://github.com/NazemMahmud/strategy-pattern) for example
### [Mediator](https://github.com/NazemMahmud/design-paterns/tree/main/Mediator)
Allow objects to communicate with each other without the need for them to be aware of each other's identities. This pattern defines a mediator object that encapsulates the coordination logic between multiple objects.\
Check [this repo](https://github.com/NazemMahmud/design-paterns/tree/mediator) for example
### [Memento](https://github.com/NazemMahmud/design-paterns/tree/main/Memento)
It lets you save and restore the previous state of an object without violating encapsulation (without revealing the details of its implementation).
Check [this repo](https://github.com/NazemMahmud/design-paterns/tree/main/Memento) for example