This is a repository for Design Patterns using PHP. It includes examples and unit tests for each pattern.
-
Creational Design Patterns
- Factory Method
- Abstract Factory
- Simple Factory
- Static Factory
- Builder
- Prototype
- Singleton
-
Structural Design Patterns
- Adapter [ Wrapper ]
- Bridge
- Composite [ Object Tree ]
- Decorator
- Dependency - Injection
- Facade
- Fluent Interface
- Proxy
- Flyweight [Cache]
-
Behavioral Design Patterns
- Chain of Responsibility
- Command
- Iterator
- run
composer install
- run
./vendor/bin/phpunit Tests
This project is licensed under the MIT License