https://github.com/shahnotes/php-design-patterns
Design patterns and software principles implemented on PHP
https://github.com/shahnotes/php-design-patterns
Last synced: 10 months ago
JSON representation
Design patterns and software principles implemented on PHP
- Host: GitHub
- URL: https://github.com/shahnotes/php-design-patterns
- Owner: shahnotes
- Created: 2019-06-21T18:24:10.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-23T18:13:14.000Z (over 6 years ago)
- Last Synced: 2025-02-12T12:56:32.389Z (over 1 year ago)
- Language: PHP
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Design patterns and principles
## Design patterns
### Behavioural Design Patterns
1. Chain of responsibility
2. Command
3. Interpreter
4. Iterator
5. Mediator
6. Memento
7. Null object
8. Observer
9. State
10. Strategy
11. Template method
12. Visitor
### Creational Design Patterns
1. Singleton
2. Prototype
3. Factory
4. Abstract Factory
5. Builder
6. Object Pool
### Structural Design Patterns
1. Adapter
2. Bridge
3. Composite
4. Decorator
5. Facade
6. Flyweight
7. Private class data
8. Proxy
## Principles
### SOLID Principles
1. S : **`Single responsibility principle`**
2. O : **`Open-closed principle`**
3. L : **`Liskov substitution principle`**
4. I : **`Interface segregation principle`**
5. D : **`Dependency inversion principle`**
### KISS Principle
1. KISS : **`Keep it simple stupid`**
### DRY Principle
1. DRY : **`Do not repeat yourself`**
### TDA Principle
1. TDA : **`Tell dont't ask`**
### SoC Principle
1. SoC : **`Separation of concerns`**
### YAGNI Principle
1. YAGNI : **`You ain't gonna need it`**