PHPackages                             design-pattern/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. design-pattern/design-pattern

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

design-pattern/design-pattern
=============================

design pattern

06PHP

Since Oct 11Pushed 5y ago1 watchersCompare

[ Source](https://github.com/KarenMrzhang/Design-Pattern)[ Packagist](https://packagist.org/packages/design-pattern/design-pattern)[ RSS](/packages/design-pattern-design-pattern/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Design-Pattern
==============

[](#design-pattern)

设计模式代表了最佳的编程实践，是由众多软件开发人员经过相当长的时间的试验和错误总结出来的。 目前是使用了PHP语言实现了设计模式

分类
==

[](#分类)

这些设计模式大致可以分为三大类

- 创建型模式 ：单例模式、工厂模式、抽象工厂模式、[建造者模式](https://github.com/KarenMrzhang/Design-Pattern/tree/master/builder)、[原型模式](https://github.com/KarenMrzhang/Design-Pattern/tree/master/prototype)
- 结构型模式 ：[适配器模式](https://github.com/KarenMrzhang/Design-Pattern/tree/master/adapter)、[桥接模式](https://github.com/KarenMrzhang/Design-Pattern/tree/master/bridge)、[过滤器模式](https://github.com/KarenMrzhang/Design-Pattern/tree/master/criteria)、[组合模式](https://github.com/KarenMrzhang/Design-Pattern/tree/master/composite)、[装饰器模式](https://github.com/KarenMrzhang/Design-Pattern/tree/master/decorator)、[外观模式](https://github.com/KarenMrzhang/Design-Pattern/tree/master/facade)、[享元模式](https://github.com/KarenMrzhang/Design-Pattern/tree/master/flyweight)、[代理模式](https://github.com/KarenMrzhang/Design-Pattern/tree/master/proxy)
- 行为型模式 ： [责任链模式](https://github.com/KarenMrzhang/Design-Pattern/tree/master/chain)、[命令模式](https://github.com/KarenMrzhang/Design-Pattern/tree/master/command)、[解释器模式](https://github.com/KarenMrzhang/Design-Pattern/tree/master/interpreter)、[迭代器模式](https://github.com/KarenMrzhang/Design-Pattern/tree/master/iterator)、中介者模式、备忘录模式、[观察者模式](https://github.com/KarenMrzhang/Design-Pattern/tree/master/observer)、状态模式、空对象模式、[策略模式](https://github.com/KarenMrzhang/Design-Pattern/tree/master/strategy)、模板模式、[访问者模式](https://github.com/KarenMrzhang/Design-Pattern/tree/master/visitor)

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

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/7eca76f44026c505f23178826ed406177c55551de73c3d3ae35cd63f2568df97?d=identicon)[Karenzhang](/maintainers/Karenzhang)

---

Tags

design-pattern

### Embed Badge

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

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

###  Alternatives

[dcblogdev/laravel-junie

Install pre-configured guides for Jetbrains Junie

392.5k](/packages/dcblogdev-laravel-junie)[sevendays/filament-page-builder

A visual page builder for Filament

541.2k](/packages/sevendays-filament-page-builder)

PHPackages © 2026

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