This project has been created for learning design patterns with PHP.
How to use:
- Run
composer require twent/design-patterns:<stable-version-number or dev-master>
How to dev:
- Clone this repo or run
composer create-project twent/design-patterns:dev-master
- Run
make && make test
- Creational / Пораждающие:
- Singleton
- Factory
- Factory method
- Static Factory
- Abstract Factory
- Builder
- Prototype
- Pool
- Structural / Структурные
- Dependency Injection
- Registry
- Composite
- Adapter / Wrapper
- Bridge
- Data mapper
- Decorator
- Facade
- Fluent Interface
- Flyweight
- Proxy