PHPackages                             wangxingfa/phpmodedesign - 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. wangxingfa/phpmodedesign

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

wangxingfa/phpmodedesign
========================

PHP mode design examples

1.0(5y ago)02MITPHPPHP &gt;=5.6.0

Since Oct 21Pushed 5y ago1 watchersCompare

[ Source](https://github.com/wangxingfa/phpmodedesign)[ Packagist](https://packagist.org/packages/wangxingfa/phpmodedesign)[ RSS](/packages/wangxingfa-phpmodedesign/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

PHP基本的设计模式
==========

[](#php基本的设计模式)

#### 1、工厂模式改进的数据中心模式 datacenter

[](#1工厂模式改进的数据中心模式-datacenter)

#### 2、观察者模式 observe observeranother

[](#2观察者模式-observe-observeranother)

#### 3、委托模式 deletgator

[](#3委托模式-deletgator)

#### 4、门面模式 facade facadeanother

[](#4门面模式-facade-facadeanother)

#### 5、策略模式 stategy

[](#5策略模式-stategy)

#### 6、注册树模式 register （可以加上 对 arrayaccess 的继承 实现数组方式访问对象）

[](#6注册树模式-register-可以加上-对-arrayaccess-的继承-实现数组方式访问对象)

#### 7、适配器模式 adapter

[](#7适配器模式-adapter)

**持续更新维护 不断在工作中总结**

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Unknown

Total

1

Last Release

2080d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e39068f280154f287f24384b7bf8bbaa12227edd7cc636cbdad0e8d177c3e65?d=identicon)[louis\_wangxingfa](/maintainers/louis_wangxingfa)

---

Top Contributors

[![wangxingfa](https://avatars.githubusercontent.com/u/1849678?v=4)](https://github.com/wangxingfa "wangxingfa (3 commits)")

---

Tags

stringtoolsutils

### Embed Badge

![Health badge](/badges/wangxingfa-phpmodedesign/health.svg)

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

###  Alternatives

[danielstjules/stringy

A string manipulation library with multibyte support

2.4k26.3M192](/packages/danielstjules-stringy)[vaimo/composer-patches

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.

3014.6M25](/packages/vaimo-composer-patches)[voku/stringy

A string manipulation library with multibyte support

1863.9M25](/packages/voku-stringy)[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

3361.0M51](/packages/dereuromark-cakephp-tools)[statamic/stringy

A string manipulation library with multibyte support, forked from @statamic

245.0M18](/packages/statamic-stringy)[michaldudek/foundation

A set of useful PHP classes.

13112.6k13](/packages/michaldudek-foundation)

PHPackages © 2026

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