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,977 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  
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

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,977
This week:206Up