PHP Classes

Head First Design Patterns PHP: PHP version of the code examples of the book

Recommend this page to a friend!
  Info   View files Documentation   View files View files (25)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 192 This week: 1All time: 8,557 This week: 571Up
Version License PHP version Categories
headfirstdesignpatte 1.0.0MIT/X Consortium ...5PHP 5, Design Patterns
Description 

Author

This package provides a PHP version of the code examples of the book Head first design patterns in PHP.

It is a port to PHP of the classes that are provided with the book that were originally in Java.

Currently it provides classes divided in groups for design patterns of the kinds: observer and strategy.

Innovation Award
PHP Programming Innovation award nominee
September 2020
Number 2
Head First Design Patterns is a very popular book that many developers have bought to learn about software design patterns. The code examples in the book are in Java.

This package provides a port of the code examples to PHP, so the design patterns taught in the book become easier to understand by PHP developers.

Manuel Lemos
Picture of Ogbemudia Osayawe
  Performance   Level  
Name: Ogbemudia Osayawe <contact>
Classes: 8 packages by
Country: Germany Germany
Age: 40
All time rank: 2943174 in Germany Germany
Week rank: 420 Up17 in Germany Germany Up
Innovation award
Innovation award
Nominee: 5x

Documentation

Head first design patterns in PHP

If you have read Head first design patterns book, you know the examples given are in Java, this repo contains the implementation in PHP 7.4.





  Files folder image Files  
File Role Description
Files folder imagesrc (2 directories)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
Files folder imageObserver (3 files, 2 directories)
Files folder imageStrategy (1 file, 2 directories)

  Files folder image Files  /  src  /  Observer  
File Role Description
Files folder imageuml (1 file)
Files folder imageWeather (4 files, 1 directory)
  Plain text file Collection.php Class Class source
  Accessible without login Plain text file doc.md Data Auxiliary data
  Plain text file ObserverCollection.php Class Class source

  Files folder image Files  /  src  /  Observer  /  uml  
File Role Description
  Accessible without login Image file uml.png Data Auxiliary data

  Files folder image Files  /  src  /  Observer  /  Weather  
File Role Description
Files folder imageContract (3 files)
  Plain text file CurrentConditionDisplay.php Class Class source
  Plain text file ForcastDisplay.php Class Class source
  Plain text file Observable.php Class Class source
  Plain text file WeatherData.php Class Class source

  Files folder image Files  /  src  /  Observer  /  Weather  /  Contract  
File Role Description
  Plain text file DisplayElement.php Class Class source
  Plain text file Observer.php Class Class source
  Plain text file Subject.php Class Class source

  Files folder image Files  /  src  /  Strategy  
File Role Description
Files folder imageDuck (10 files)
Files folder imageuml (1 file)
  Accessible without login Plain text file doc.md Data Auxiliary data

  Files folder image Files  /  src  /  Strategy  /  Duck  
File Role Description
  Plain text file Duck.php Class Class source
  Plain text file FlyBehaviour.php Class Class source
  Plain text file FlyNoWay.php Class Class source
  Plain text file FlyRocketPowered.php Class Class source
  Plain text file FlyWithWings.php Class Class source
  Plain text file MallardDuck.php Class Class source
  Plain text file ModelDuck.php Class Class source
  Plain text file MuteQuack.php Class Class source
  Plain text file Quack.php Class Class source
  Plain text file QuackBehaviour.php Class Class source

  Files folder image Files  /  src  /  Strategy  /  uml  
File Role Description
  Accessible without login Image file uml.png Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:192
This week:1
All time:8,557
This week:571Up