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

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

sy-records/design-patterns
==========================

php design patterns

531919PHP

Since Nov 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/sy-records/design-patterns)[ Packagist](https://packagist.org/packages/sy-records/design-patterns)[ RSS](/packages/sy-records-design-patterns/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

 [ ![](swoolee-logo.png) ](https://course.swoole-cloud.com)
 **Swoole微课程-PHP设计模式**

 [![](https://camo.githubusercontent.com/65aad2da273537b555b0f36ea3f84541187402e7993ad9a6c9f5aaf2a236fd61/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6e746163742d404c756666792d6f72616e67652e7376673f7374796c653d666c6174)](https://qq52o.me) [![](https://camo.githubusercontent.com/888ef6e854960a8110cd3fcf4b10bd57e480809cf45b5c6dd9df6b940c9f8759/68747470733a2f2f706f7365722e707567782e6f72672f73792d7265636f7264732f64657369676e2d7061747465726e732f6c6963656e7365)](https://camo.githubusercontent.com/888ef6e854960a8110cd3fcf4b10bd57e480809cf45b5c6dd9df6b940c9f8759/68747470733a2f2f706f7365722e707567782e6f72672f73792d7265636f7264732f64657369676e2d7061747465726e732f6c6963656e7365) [![](https://camo.githubusercontent.com/59d7323efc00aac42b665ed992eb54acf2927d167ea6dbefb8d07f9824f69319/68747470733a2f2f706f7365722e707567782e6f72672f73792d7265636f7264732f64657369676e2d7061747465726e732f646f776e6c6f616473)](https://packagist.org/packages/sy-records/design-patterns) [![](https://camo.githubusercontent.com/c6d76075061234e9ff9482aa12ade03c9cc5c9356be7c95e7015384211a4ecd4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f73792d7265636f7264732f64657369676e2d7061747465726e73)](https://github.com/sy-records/design-patterns/graphs/contributors)

下载
--

[](#下载)

```
composer create-project sy-records/design-patterns:dev-master
```

目录
--

[](#目录)

- [单例模式](Singleton)
- [工厂模式](Factory)
    - [简单工厂/静态工厂](Factory/SimpleFactory)
    - [工厂方法](Factory/FactoryMethod)
    - [抽象工厂](Factory/AbstractFactory)
    - [优化抽象工厂](Factory/OptimizeAbstractFactory)
- [注册树模式](RegistryTree)
- [建造者模式](Builder)
- [原型模式](Prototype)
- [适配器模式](Adapter)
    - [类适配器模式](Adapter/ClassAdapter)
    - [对象适配器模式](Adapter/ObjectAdapter)
- [桥接模式](Bridge)
- [装饰器模式](Decorator)
- [组合模式](Composite)
    - [透明模式](Composite/Transparent)
    - [安全模式](Composite/Safe)
- [外观模式](Facade)
- [享元模式](Flyweight)
- [代理模式](Proxy)
- [模板方法模式](TemplateMethod)
- [命令模式](Command)
- [状态模式](State)
- [策略模式](Strategy)
- 迭代器模式
- 责任链模式
- 观察者模式

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/17615e789eec7042f64c6f4e8733421987d98fcdc4269395b42d2a7f0ae94301?d=identicon)[sy-records](/maintainers/sy-records)

---

Top Contributors

[![sy-records](https://avatars.githubusercontent.com/u/33931153?v=4)](https://github.com/sy-records "sy-records (97 commits)")

---

Tags

design-patternsphpswoole

### Embed Badge

![Health badge](/badges/sy-records-design-patterns/health.svg)

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

PHPackages © 2026

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