PHPackages                             hyunk3l/php-design-patterns - 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. hyunk3l/php-design-patterns

ActiveLibrary

hyunk3l/php-design-patterns
===========================

Just another design patterns collection for PHP

1.0(9y ago)441[2 PRs](https://github.com/Hyunk3l/php-design-patterns/pulls)PHPCI passing

Since Mar 2Pushed 1mo agoCompare

[ Source](https://github.com/Hyunk3l/php-design-patterns)[ Packagist](https://packagist.org/packages/hyunk3l/php-design-patterns)[ RSS](/packages/hyunk3l-php-design-patterns/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (5)Used By (0)

[![php-design-patterns](https://cloud.githubusercontent.com/assets/754861/23532839/235b0e82-ffae-11e6-85bd-fd5f10ffc318.png)](https://cloud.githubusercontent.com/assets/754861/23532839/235b0e82-ffae-11e6-85bd-fd5f10ffc318.png)

[![Latest Stable Version](https://camo.githubusercontent.com/3e0c78830536b4712cea90bbc30e079aed7c8aba1cec86b74c0ee6d271601f97/68747470733a2f2f706f7365722e707567782e6f72672f6879756e6b336c2f7068702d64657369676e2d7061747465726e732f762f737461626c65)](https://packagist.org/packages/hyunk3l/php-design-patterns)[![Total Downloads](https://camo.githubusercontent.com/4c179edd406dc5ac20466f26b70282278bc500c830a1402caadd848570a44e3d/68747470733a2f2f706f7365722e707567782e6f72672f6879756e6b336c2f7068702d64657369676e2d7061747465726e732f646f776e6c6f616473)](https://packagist.org/packages/hyunk3l/php-design-patterns)[![License](https://camo.githubusercontent.com/e66da80296828cea8e43c11aa008d9af2629efdfcddfc59b0f88213e4b4113d6/68747470733a2f2f706f7365722e707567782e6f72672f6879756e6b336c2f7068702d64657369676e2d7061747465726e732f6c6963656e7365)](https://packagist.org/packages/hyunk3l/php-design-patterns)

Just another collection of design patterns implementations in PHP
-----------------------------------------------------------------

[](#just-another-collection-of-design-patterns-implementations-in-php)

Requirements
------------

[](#requirements)

- PHP 8.4.1+

Setup
-----

[](#setup)

- Run `./composer.phar install`

Run Tests
---------

[](#run-tests)

- Run `./composer.phar test`
- Run `./composer.phar test:coverage`

Run Coding Standards
--------------------

[](#run-coding-standards)

- Run `./composer.phar cs`
- Run `./composer.phar cs:fix`

Run Static Analysis
-------------------

[](#run-static-analysis)

- Run `./composer.phar stan`

CI Pipeline (local)
-------------------

[](#ci-pipeline-local)

- Run `./composer.phar ci`

Contributing
------------

[](#contributing)

- Create feature branches from `master`.
- Keep pattern folders mirrored in `src//` and `test//`.
- Include/maintain `README.md` in each pattern folder.
- Run `./composer.phar ci` before opening a PR.

Project Conventions
-------------------

[](#project-conventions)

- See `docs/PATTERN_STRUCTURE.md`.

###  Health Score

40

—

FairBetter than 87% of packages

Maintenance64

Regular maintenance activity

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 98.3% 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

Unknown

Total

1

Last Release

3354d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8dc88dca9256091ffe18f41468d64558d284a1fe735aa553f89dc6a243483f6a?d=identicon)[Hyunk3l](/maintainers/Hyunk3l)

---

Top Contributors

[![Hyunk3l](https://avatars.githubusercontent.com/u/754861?v=4)](https://github.com/Hyunk3l "Hyunk3l (114 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

---

Tags

best-practicesdesign-patterndesign-patternsphpphp-examplesphp7

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hyunk3l-php-design-patterns/health.svg)

```
[![Health](https://phpackages.com/badges/hyunk3l-php-design-patterns/health.svg)](https://phpackages.com/packages/hyunk3l-php-design-patterns)
```

###  Alternatives

[slevomat/coding-standard

Slevomat Coding Standard for PHP\_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.

1.5k123.5M1.8k](/packages/slevomat-coding-standard)[drupal/coder

Coder is a library to review Drupal code.

3043.6M458](/packages/drupal-coder)[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.1M29](/packages/yoast-yoastcs)[mayflower/mo4-coding-standard

PHP CodeSniffer ruleset implementing the MO4 coding standards extending the Symfony coding standards.

17508.3k5](/packages/mayflower-mo4-coding-standard)[chromatic/usher

A collection of Robo commands for use on Chromatic projects.

13534.3k1](/packages/chromatic-usher)

PHPackages © 2026

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