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

ActiveLibrary

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 today

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 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

2026d 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.0M190](/packages/danielstjules-stringy)[jbzoo/utils

Collection of PHP functions, mini classes and snippets for everyday developer's routine life.

8321.5M36](/packages/jbzoo-utils)[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.

2994.3M14](/packages/vaimo-composer-patches)[voku/stringy

A string manipulation library with multibyte support

1783.8M19](/packages/voku-stringy)[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

338920.1k32](/packages/dereuromark-cakephp-tools)[statamic/stringy

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

234.5M14](/packages/statamic-stringy)

PHPackages © 2026

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