https://github.com/pavlusha311245/patternsphp
This project is a collection of design patterns, examples on how to use them, and their implementations in PHP.
https://github.com/pavlusha311245/patternsphp
patterns php
Last synced: 2 months ago
JSON representation
This project is a collection of design patterns, examples on how to use them, and their implementations in PHP.
- Host: GitHub
- URL: https://github.com/pavlusha311245/patternsphp
- Owner: Pavlusha311245
- Created: 2023-05-15T08:58:32.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-05-29T19:58:51.000Z (about 2 years ago)
- Last Synced: 2025-02-03T21:44:22.837Z (4 months ago)
- Topics: patterns, php
- Language: PHP
- Homepage:
- Size: 30.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# "PHP Design Patterns" project
This project is a collection of design patterns, examples on how to use them, and their implementations in PHP.
## Project Description
The project includes the following design patterns:
1. **Creational Patterns**
* ✅ Singleton
* ✅ Factory Method
* ✅ Abstract Factory
* ✅ Builder
* ✅ Prototype2. **Structural Patterns**
* ✅ Adapter
* ✅ Bridge
* ❌ Composite
* ✅ Decorator
* ✅ Facade
* ❌ Flyweight
* ❌ Proxy3. **Behavioral Patterns**
* ✅ Chain of Responsibility
* ✅ Command
* ❌ Iterator
* ❌ Mediator
* ❌ Memento
* ✅ Observer
* ✅ State
* ✅ Strategy
* ❌ Template Method
* ✅ VisitorEach pattern is accompanied by PHP code and examples of how to use it.
## How to Install
1. Clone the repository to your local machine.
2. Open the example files and study them or copy the code you need.