PHPackages                             kuriv/phpdp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. kuriv/phpdp

AbandonedArchivedLibrary[Testing &amp; Quality](/categories/testing)

kuriv/phpdp
===========

Sample code for several design patterns in PHP.

1.0.3(5y ago)110MITPHPPHP &gt;=7.4.0

Since Feb 11Pushed 2y ago1 watchersCompare

[ Source](https://github.com/kuriv/phpdp)[ Packagist](https://packagist.org/packages/kuriv/phpdp)[ RSS](/packages/kuriv-phpdp/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

phpdp
=====

[](#phpdp)

[ ![](phpdp.svg)](https://github.com/kuriv/phpdp)> Sample code for several design patterns in PHP.

[![build](https://camo.githubusercontent.com/b0c6c6845a74cb65a7f0a32bdcfd8fbf80eeb40026c4029af424ab371c94b8bd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275696c642d70617373696e672d627269676874677265656e "build")](https://github.com/kuriv/phpdp "build")[![version](https://camo.githubusercontent.com/12699e445aadfba14fbe28c7f736c679cac95650148d37d85dfa06c11ed5df62/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d76312e302e332d626c7565 "version")](https://github.com/kuriv/phpdp "version")[![license](https://camo.githubusercontent.com/f8df3091bbe1149f398a5369b2c39e896766f9f6efba3477c63e9b4aa940ef14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e "license")](https://github.com/kuriv/phpdp "license")

Installation
------------

[](#installation)

**Git**

```
git clone https://github.com/kuriv/phpdp.git

```

**Composer**

```
composer require kuriv/phpdp

```

Contents
--------

[](#contents)

### [Behavioral](src/Behavioral)

[](#behavioral)

- [ChainOfResponsibilities](src/Behavioral/ChainOfResponsibilities)
- [Command](src/Behavioral/Command)
- [Iterator](src/Behavioral/Iterator)
- [Mediator](src/Behavioral/Mediator)
- [Memento](src/Behavioral/Memento)
- [NullObject](src/Behavioral/NullObject)
- [Observer](src/Behavioral/Observer)
- [Specification](src/Behavioral/Specification)
- [State](src/Behavioral/State)
- [Strategy](src/Behavioral/Strategy)
- [TemplateMethod](src/Behavioral/TemplateMethod)
- [Visitor](src/Behavioral/Visitor)

### [Creational](src/Creational)

[](#creational)

- [AbstractFactory](src/Creational/AbstractFactory)
- [Builder](src/Creational/Builder)
- [FactoryMethod](src/Creational/FactoryMethod)
- [Multiton](src/Creational/Multiton)
- [Pool](src/Creational/Pool)
- [Prototype](src/Creational/Prototype)
- [SimpleFactory](src/Creational/SimpleFactory)
- [Singleton](src/Creational/Singleton)
- [StaticFactory](src/Creational/StaticFactory)

### [More](src/More)

[](#more)

- [EAV](src/More/EAV)
- [Repository](src/More/Repository)
- [ServiceLocator](src/More/ServiceLocator)

### [Structural](src/Structural)

[](#structural)

- [Adapter](src/Structural/Adapter)
- [Bridge](src/Structural/Bridge)
- [Composite](src/Structural/Composite)
- [DataMapper](src/Structural/DataMapper)
- [Decorator](src/Structural/Decorator)
- [DependencyInjection](src/Structural/DependencyInjection)
- [Facade](src/Structural/Facade)
- [FluentInterface](src/Structural/FluentInterface)
- [Flyweight](src/Structural/Flyweight)
- [Proxy](src/Structural/Proxy)
- [Registry](src/Structural/Registry)

License
-------

[](#license)

`phpdp` is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT) .

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~96 days

Total

3

Last Release

2096d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c297361493398e7bfc561f4095f49e3881dfe0497c710963b4cd08fcbf1b371d?d=identicon)[kuriv](/maintainers/kuriv)

---

Top Contributors

[![kuriv](https://avatars.githubusercontent.com/u/25667547?v=4)](https://github.com/kuriv "kuriv (93 commits)")

---

Tags

design-patterndesign-patternsdesignpatterndesignpatternsphpphpunit

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kuriv-phpdp/health.svg)

```
[![Health](https://phpackages.com/badges/kuriv-phpdp/health.svg)](https://phpackages.com/packages/kuriv-phpdp)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
