PHP Classes

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

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 192 All time: 8,567 This week: 455Up
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: 9 packages by
Country: Germany Germany
Age: 41
All time rank: 2885172 in Germany Germany
Week rank: 192 Up13 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 (25)  
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 (25)  /  src  
File Role Description
Files folder imageObserver (3 files, 2 directories)
Files folder imageStrategy (1 file, 2 directories)

  Files folder image Files (25)  /  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 (25)  /  src  /  Observer  /  uml  
File Role Description
  Accessible without login Image file uml.png Data Auxiliary data

  Files folder image Files (25)  /  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 (25)  /  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 (25)  /  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 (25)  /  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 (25)  /  src  /  Strategy  /  uml  
File Role Description
  Accessible without login Image file uml.png Data Auxiliary data

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:192
This week:0
All time:8,567
This week:455Up