All Projects → DesignPatternsPHP → Designpatternsphp

DesignPatternsPHP / Designpatternsphp

Licence: mit
sample code for several design patterns in PHP 8

Programming Languages

PHP
23972 projects - #3 most used programming language
python
139335 projects - #7 most used programming language
Makefile
30231 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to Designpatternsphp

Design Patterns
Contains examples of design patterns that implemented in php
Stars: ✭ 375 (-98.14%)
Mutual labels:  design-patterns, oop, design-pattern, phpunit
design-patterns-cookbook
Design Patterns in simple words with examples on PHP
Stars: ✭ 26 (-99.87%)
Mutual labels:  design-pattern, oop, design-patterns
awesome-software-architecture
A curated list of awesome articles, videos, and other resources to learn and practice software architecture, patterns, and principles.
Stars: ✭ 1,594 (-92.09%)
Mutual labels:  design-pattern, oop, design-patterns
dotnet-design-patterns-samples
The samples of .NET design patterns
Stars: ✭ 25 (-99.88%)
Mutual labels:  design-pattern, design-patterns
Front-End-Design-Patterns
Design Patterns
Stars: ✭ 25 (-99.88%)
Mutual labels:  oop, design-patterns
estore
Electronic Store Application - A web based application developed using PHP and Driven by MySQL Database
Stars: ✭ 48 (-99.76%)
Mutual labels:  oop, design-patterns
spe
A series of PHP8 examples based around a super simple MVC framework (WIP)
Stars: ✭ 14 (-99.93%)
Mutual labels:  oop, php8
OOP-Design-Patterns
MET CS665 - OOP Design Patterns Code Examples
Stars: ✭ 74 (-99.63%)
Mutual labels:  design-pattern, design-patterns
work
A compact library for tracking and committing changes to your entities.
Stars: ✭ 50 (-99.75%)
Mutual labels:  design-pattern, design-patterns
php-design-patterns
Learn how to implement the most important Design Patterns into your PHP application. This project uses PHP 8.1. it has examples for each Pattern and an Article explaining how to use them step by step, their advantages, and disadvantages.
Stars: ✭ 151 (-99.25%)
Mutual labels:  design-patterns, php8
design-patterns-for-humans-cn
Design patterns for humans 中文版 - 对设计模式超简单的解释
Stars: ✭ 2,432 (-87.94%)
Mutual labels:  design-pattern, design-patterns
Object Oriented Design
面向对象设计的设计原则和设计模式
Stars: ✭ 313 (-98.45%)
Mutual labels:  design-patterns, design-pattern
express-mvc-pattern
Example nodejs using express implementation design pattern using mvc architecture.
Stars: ✭ 52 (-99.74%)
Mutual labels:  oop, design-patterns
refactoringtopatterns
A place to practice Refactoring To Patterns that Kerievsky wrote about in his book
Stars: ✭ 46 (-99.77%)
Mutual labels:  design-pattern, design-patterns
Entitas-Redux
An entity-component framework for Unity with code generation and visual debugging
Stars: ✭ 84 (-99.58%)
Mutual labels:  design-pattern, design-patterns
Java-Programs
Java Practiced Problems including concepts of OOPS, Interface, String , Collection.
Stars: ✭ 51 (-99.75%)
Mutual labels:  oop, design-patterns
php-mime-detector
Detect a file's mime type using magic numbers.
Stars: ✭ 20 (-99.9%)
Mutual labels:  phpunit, php8
LuaKit
Lua核心工具包,包含对面向对象,组件系统(灵活的绑定解绑模式),mvc分模块加载,事件分发系统等常用模式的封装。同时提供打印,内存泄漏检测,性能分析等常用工具类。
Stars: ✭ 112 (-99.44%)
Mutual labels:  design-pattern, oop
DoFactorydotNetDesignPattern
http://www.dofactory.com/net/design-patterns
Stars: ✭ 17 (-99.92%)
Mutual labels:  design-pattern, design-patterns
design-patterns
Simple examples of Design Patterns with PHP Examples
Stars: ✭ 75 (-99.63%)
Mutual labels:  oop, design-patterns

DesignPatternsPHP

Build Status Documentation Status Donate

Read the Docs of DesignPatternsPHP or Download as PDF/Epub

This is a collection of known design patterns and some sample codes on how to implement them in PHP. Every pattern has a small list of examples.

I think the problem with patterns is that often people do know them but don't know when to apply which.

Installation

You should look at and run the tests to see what happens in the example. To do this, you should install dependencies with Composer first:

$ composer install

Read more about how to install and use Composer on your local machine here.

To run the tests use phpunit:

$ ./vendor/bin/phpunit

Using Docker (optional)

You can optionally build and browse the documentation using Docker for Mac, Windows or Linux.

Just run:

$ docker-compose up --build

Go to http://localhost:8080/ to read the generated documentation.

If you want to localize your documentation you can pass the locale as an argument to the docker build:

$ docker-compose build --build-arg language=de
$ docker-compose up

Patterns

The patterns can be structured in roughly three different categories. Please click on the 📓 for a full explanation of the pattern on Wikipedia.

Creational

Structural

Behavioral

More

Localization & Supported Languages

Code Language Documentation
ca Catalan Docs 📓
zh_CN Chinese Docs 📓
nl Dutch Docs 📓
en English Docs 📓
de German Docs 📓
ja Japanese Docs 📓
pl Polish Docs 📓
pt_BR Portuguese-Brazil Docs 📓
ru Russian Docs 📓
es Spanish Docs 📓
es_MX Spanish-Mexican Docs 📓
tr Turkish Docs 📓
bg Bulgarian Docs 📓
fr French Docs 📓
it Italian Docs 📓
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].