An open API service indexing awesome lists of open source software.

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

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`**