DesignPatternsPHP/DesignPatternsPHP resource
Sample code for several design patterns in PHP 8.x observed · 2026-08-28
Health v2 · maintenance only
34/100
- Activity 4
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5490
- days_rel: n/a
- days_push: 576
- n_releases_24m: 0
Adoption not part of the score
22186 stars · 4506 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A collection of sample code implementations of well-known software design patterns in PHP 8.x, with explanations and runnable PHPUnit tests. It is accompanied by hosted documentation on Read the Docs available as HTML, PDF, and Epub.
Use cases
- learn how to implement design patterns in PHP
- see examples of creational, structural, and behavioral patterns
- study modern PHP 8 object-oriented code
- find out which design pattern fits a given problem
- run example pattern code with PHPUnit tests
When to choose
- you are a PHP developer learning or teaching design patterns
- you want concise, tested reference implementations of classic patterns
- you need modern PHP 8.x code examples for OOP idioms
When to avoid
- you need a production-ready pattern library to import into your project
- you work in a language other than PHP
- you want exhaustive coverage of every pattern variant or architectural patterns
Facets
learning-resource · maturity active
developer-tools documentation testing developer-tools tutorials programming-languages php cross-platform design-patterns oop php8 code-examples phpunit
1 source
- readme: https://github.com/DesignPatternsPHP/DesignPatternsPHP · fetched 2026-08-28 · 68348a4ea306
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| DesignPatternsPHP/DesignPatternsPHP | main | 34 |
For agents
markdown · JSON · MCP: product_card(name="DesignPatternsPHP/DesignPatternsPHP")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem