Skip to content

Hitch95/Design_Patterns_PHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Design Patterns in PHP

This repository contains various examples of design patterns implemented in PHP. Each folder demonstrates a different pattern, with exercises and sample code to help you understand and apply these concepts in real-world scenarios.

Structure

The project is organized into the following directories, each representing a design pattern:

  • adapter/: Adapter pattern examples and exercises
  • builder/: Builder pattern examples and exercises
  • composite/: Composite pattern examples and exercises
  • decorator/: Decorator pattern examples and exercises
  • facade/: Facade pattern examples and exercises
  • factory_method/: Factory Method pattern examples and exercises
  • iterator/: Iterator pattern examples and exercises
  • observer/: Observer pattern examples and exercises
  • singleton/: Singleton pattern examples
  • strategy/: Strategy pattern examples and exercises
  • template_method/: Template Method pattern examples and exercises

Each main folder may contain an Exercice/ subfolder with practical assignments ("travaux pratiques") that I completed during class. The rest of the project structure and code belongs to my teacher.

How to Use

  1. Browse each pattern's folder to explore the code and exercises.
  2. Run the PHP scripts using the command line or your preferred development environment.
  3. Review the comments and structure to understand how each pattern is implemented.

Requirements

  • PHP 8.2 or higher

License

This project is for educational purposes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages