Skip to content

This project is a collection of design patterns, examples on how to use them, and their implementations in PHP.

Notifications You must be signed in to change notification settings

Pavlusha311245/PatternsPHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

"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
    • ✅ Prototype
  2. Structural Patterns

    • ✅ Adapter
    • ✅ Bridge
    • ❌ Composite
    • ✅ Decorator
    • ✅ Facade
    • ❌ Flyweight
    • ❌ Proxy
  3. Behavioral Patterns

    • ✅ Chain of Responsibility
    • ✅ Command
    • ❌ Iterator
    • ❌ Mediator
    • ❌ Memento
    • ✅ Observer
    • ✅ State
    • ✅ Strategy
    • ❌ Template Method
    • ✅ Visitor

Each 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.

About

This project is a collection of design patterns, examples on how to use them, and their implementations in PHP.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages