PHPackages                             imajinyun/php-design-pattern - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. imajinyun/php-design-pattern

ActiveProject[Utility &amp; Helpers](/categories/utility)

imajinyun/php-design-pattern
============================

An example of design pattern implemented in PHP language.

501PHPCI failing

Since Mar 30Pushed 4y ago2 watchersCompare

[ Source](https://github.com/imajinyun/php-design-pattern)[ Packagist](https://packagist.org/packages/imajinyun/php-design-pattern)[ RSS](/packages/imajinyun-php-design-pattern/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

php-design-patterns
===================

[](#php-design-patterns)

> 🚀 An example of design pattern implemented in PHP language.

[![PHP Composer](https://github.com/imajinyun/php-design-patterns/actions/workflows/php.yml/badge.svg)](https://github.com/imajinyun/php-design-patterns/actions/workflows/php.yml)[![Build Status](https://camo.githubusercontent.com/790d7a2a70709eae2170b9fa2cb12015f81167b91dd2e0c11f6254e625e0d28e/68747470733a2f2f7472617669732d63692e6f72672f696d616a696e79756e2f7068702d64657369676e2d7061747465726e732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/imajinyun/php-design-patterns)[![Build status](https://camo.githubusercontent.com/39e599fba83775637e252c3ac78cb3a5f39869a668b9a0723eb6549f00156dfd/68747470733a2f2f63692e6170707665796f722e636f6d2f6170692f70726f6a656374732f7374617475732f6c6266363167697739696176687474352f6272616e63682f6d61737465723f7376673d74727565)](https://ci.appveyor.com/project/imajinyun/php-design-pattern/branch/master)[![codecov](https://camo.githubusercontent.com/40711db848f8c64ff02bfc05626fb42d88baa31e11e9f83c3406573158c1c158/68747470733a2f2f636f6465636f762e696f2f67682f696d616a696e79756e2f7068702d64657369676e2d7061747465726e732f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/imajinyun/php-design-patterns)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/9772d41016969a32e4b4f425611dd1c7dd31bd387d2637d76919c25cb66bc468/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f696d616a696e79756e2f7068702d64657369676e2d7061747465726e732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/imajinyun/php-design-patterns/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/238706167ea53c65bdeb2ae57bdeaf7557fd764ffdfd9adf2c40fcf5f206094f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f696d616a696e79756e2f7068702d64657369676e2d7061747465726e732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/imajinyun/php-design-patterns/?branch=master)[![Build Status](https://camo.githubusercontent.com/04ced5346e4ba29de14169dfab5cc409640e010f3f45942e8a51700fce1a41cb/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f696d616a696e79756e2f7068702d64657369676e2d7061747465726e732f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/imajinyun/php-design-patterns/build-status/master)[![Code Intelligence Status](https://camo.githubusercontent.com/599b513f86bc71ab4de36d87c0958516f5a858a1f057fa8bbe253c5d9788de52/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f696d616a696e79756e2f7068702d64657369676e2d7061747465726e732f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d6173746572)](https://scrutinizer-ci.com/code-intelligence)[![StyleCI](https://camo.githubusercontent.com/937d6cfdbbdf110c0df73cbb3d1c5cd0d90373f8032256163e15e5a82eaac5f5/68747470733a2f2f7374796c6563692e696f2f7265706f732f3131323038353336302f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/112085360)[![Codacy Badge](https://camo.githubusercontent.com/674673129a8856012734759fab5a4ff61c600a51e152be90a39598750be147b3/68747470733a2f2f6170702e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3630376565633832633833343437356461646132326565313336643361646133)](https://www.codacy.com/gh/imajinyun/php-design-patterns/dashboard?utm_source=github.com&utm_medium=referral&utm_content=imajinyun/php-design-patterns&utm_campaign=Badge_Grade)[![FOSSA Status](https://camo.githubusercontent.com/d755c92b4fcc6ea54837da7649ba6eb777b794609cf76e8db90c89144afacc34/68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f6769742532426769746875622e636f6d253246696d616a696e79756e2532467068702d64657369676e2d7061747465726e2e7376673f747970653d736869656c64)](https://app.fossa.io/projects/git%2Bgithub.com%2Fimajinyun%2Fphp-design-pattern?ref=badge_shield)[![PHP Version](https://camo.githubusercontent.com/29a61829c6c9efd54690a6868e5a8fd8f3239b7216250984acf5e5bc2dac0e05/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d76657273696f6e266d6573736167653d2533453d382e3126636f6c6f723d23344635383933266c6162656c436f6c6f723d67726579266c6f676f3d504850266c6f676f436f6c6f723d626c7565267374796c653d666c6174266c696e6b3d68747470733a2f2f7777772e7068702e6e65742f737570706f727465642d76657273696f6e732e706870)](https://www.php.net/supported-versions.php)

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

[](#requirements)

- PHP &gt;= 8.0
- PHPUnit &gt;= 9.0

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

[](#installation)

> [PHPUnit](https://phpunit.de/getting-started.html)

```
// Install PHPUnit.
$ wget https://phar.phpunit.de/phpunit.phar
$ chmod +x phpunit.phar
$ sudo mv phpunit.phar /usr/local/bin/phpunit
$ phpunit -v

// Clone source code.
$ git clone https://github.com/imajinyun/php-design-pattern.git
$ cd ./php-design-pattern
$ composer install && ./phpunit -vvv
```

License
-------

[](#license)

[![FOSSA Status](https://camo.githubusercontent.com/5bf27abd16f47b9c6eb0c211f850b16754bb2321100373dd80be8f77cf73bbb7/68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f6769742532426769746875622e636f6d253246696d616a696e79756e2532467068702d64657369676e2d7061747465726e2e7376673f747970653d6c61726765)](https://app.fossa.io/projects/git%2Bgithub.com%2Fimajinyun%2Fphp-design-pattern?ref=badge_large)

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/0106a321676e685655a63d2197d33afc63afd14ceddd2127addd1773340363b1?d=identicon)[imajinyun](/maintainers/imajinyun)

---

Top Contributors

[![imajinyun](https://avatars.githubusercontent.com/u/17844273?v=4)](https://github.com/imajinyun "imajinyun (172 commits)")[![fossabot](https://avatars.githubusercontent.com/u/29791463?v=4)](https://github.com/fossabot "fossabot (1 commits)")

---

Tags

design-patternsphpphp-81php-design-patternsphp-language

### Embed Badge

![Health badge](/badges/imajinyun-php-design-pattern/health.svg)

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

PHPackages © 2026

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