PHP Classes

PHP Design Patterns Repository: Implementation of common design patterns in PHP

Recommend this page to a friend!
     
  Info   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: 89 All time: 9,966 This week: 206Up
Version License PHP version Categories
design-patterns 1.0.0The PHP License5PHP 5, Language, Design Patterns
Description 

Author

This package provides an implementation of common design patterns in PHP.

It provides a collection of classes that implement several well known design patterns.

Currently it provide classes that implement the patterns:

- Abstract Factory

- Adapter

- Bridge

- Builder

- Chain Of Responsibility

- Composite

- Decorator

- Facade

- Factory

- Prototype

- Proxy

- Singleton

Picture of Malik Naik
  Performance   Level  
Name: Malik Naik is available for providing paid consulting. Contact Malik Naik .
Classes: 9 packages by
Country: India India
Age: 26
All time rank: 3540234 in India India
Week rank: 43 Up5 in India India Up
Innovation award
Innovation award
Nominee: 5x

Details

Design Patterns

This repository contains most of the design patterns implemented in PHP.

Resources

- Refactoring.guru Design Patterns - Design Patterns PHP


  Files folder image Files (73)  
File Role Description
Files folder imagesrc (12 directories)
Plain text file abstract-factory.php Class Class source
Accessible without login Plain text file adapter.php Example Example script
Accessible without login Plain text file bridge.php Example Example script
Accessible without login Plain text file builder.php Example Example script
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composite.php Example Example script
Accessible without login Plain text file cor.php Example Example script
Accessible without login Plain text file decorator.php Example Example script
Accessible without login Plain text file facade.php Example Example script
Accessible without login Plain text file factory.php Example Example script
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file prototype.php Example Example script
Accessible without login Plain text file proxy.php Example Example script
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file singleton.php Example Example script

  Files folder image Files (73)  /  src  
File Role Description
Files folder imageAbstractFactory (9 files)
Files folder imageAdapter (3 files)
Files folder imageBridge (5 files)
Files folder imageBuilder (10 files)
Files folder imageChainOfResponsibility (5 files)
Files folder imageComposite (5 files)
Files folder imageDecorator (6 files)
Files folder imageFacade (3 files)
Files folder imageFactory (6 files)
Files folder imagePrototype (2 files)
Files folder imageProxy (3 files)
Files folder imageSingleton (1 file)

  Files folder image Files (73)  /  src  /  AbstractFactory  
File Role Description
  Plain text file Button.php Class Class source
  Plain text file LinuxButton.php Class Class source
  Plain text file LinuxFactory.php Class Class source
  Plain text file LinuxProgressBar.php Class Class source
  Plain text file ProgressBar.php Class Class source
  Plain text file UIFactory.php Class Class source
  Plain text file WindowsButton.php Class Class source
  Plain text file WindowsFactory.php Class Class source
  Plain text file WindowsProgressBar.php Class Class source

  Files folder image Files (73)  /  src  /  Adapter  
File Role Description
  Plain text file JSONData.php Class Class source
  Plain text file XMLData.php Class Class source
  Plain text file XMLToJSONAdapter.php Class Class source

  Files folder image Files (73)  /  src  /  Bridge  
File Role Description
  Plain text file AdvancedRemoteControl.php Class Class source
  Plain text file Device.php Class Class source
  Plain text file Radio.php Class Class source
  Plain text file RemoteControl.php Class Class source
  Plain text file Tv.php Class Class source

  Files folder image Files (73)  /  src  /  Builder  
File Role Description
  Plain text file Builder.php Class Class source
  Plain text file Car.php Class Class source
  Plain text file CarBuilder.php Class Class source
  Plain text file Director.php Class Class source
  Plain text file Door.php Class Class source
  Plain text file Engine.php Class Class source
  Plain text file Truck.php Class Class source
  Plain text file TruckBuilder.php Class Class source
  Plain text file Vehicle.php Class Class source
  Plain text file Wheel.php Class Class source

  Files folder image Files (73)  /  src  /  ChainOfResponsibility  
File Role Description
  Plain text file Authenticate.php Class Class source
  Plain text file Authorize.php Class Class source
  Plain text file Middleware.php Class Class source
  Plain text file Request.php Class Class source
  Plain text file Welcome.php Class Class source

  Files folder image Files (73)  /  src  /  Composite  
File Role Description
  Plain text file FieldComposite.php Class Class source
  Plain text file Fieldset.php Class Class source
  Plain text file Form.php Class Class source
  Plain text file FormElement.php Class Class source
  Plain text file Input.php Class Class source

  Files folder image Files (73)  /  src  /  Decorator  
File Role Description
  Plain text file Filter.php Class Class source
  Plain text file InputFormat.php Class Class source
  Plain text file JavascriptFilter.php Class Class source
  Plain text file MarkDownFilter.php Class Class source
  Plain text file PlainText.php Class Class source
  Plain text file PlainTextFilter.php Class Class source

  Files folder image Files (73)  /  src  /  Facade  
File Role Description
  Plain text file Facade.php Class Class source
  Plain text file Subsystem1.php Class Class source
  Plain text file Subsystem2.php Class Class source

  Files folder image Files (73)  /  src  /  Factory  
File Role Description
  Plain text file Logistics.php Class Class source
  Plain text file RoadLogistics.php Class Class source
  Plain text file SeaLogistics.php Class Class source
  Plain text file Ship.php Class Class source
  Plain text file Transport.php Class Class source
  Plain text file Truck.php Class Class source

  Files folder image Files (73)  /  src  /  Prototype  
File Role Description
  Plain text file BackReference.php Class Class source
  Plain text file Prototype.php Class Class source

  Files folder image Files (73)  /  src  /  Proxy  
File Role Description
  Plain text file CachingDownloader.php Class Class source
  Plain text file Downloader.php Class Class source
  Plain text file SimpleDownloader.php Class Class source

  Files folder image Files (73)  /  src  /  Singleton  
File Role Description
  Plain text file Singleton.php Class Class source

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:89
This week:0
All time:9,966
This week:206Up