Ross ROSS = Recommend OSS · open-source software intelligence for agents

Refactoring.Guru Design Patterns Examples resource

Design Pattern Examples in PHP observed · 2026-08-28

github.com/RefactoringGuru/design-patterns-php · homepage · PHP · NOASSERTION (other) observed · 2026-08-28

Health v2 · maintenance only

75/100

  • Activity 96
  • Release rhythm 35
  • Longevity 100

Flags: no_releases no_license

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: 3274
  • days_rel: n/a
  • days_push: 25
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1068 stars · 172 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A collection of example implementations of all classic GoF design patterns in TypeScript, Java, and PHP, part of the Refactoring.Guru educational project. Each pattern includes a conceptual example showing internal structure and a real-world example demonstrating practical usage in web applications.

Use cases

  • learn design patterns with runnable code examples
  • see how the singleton pattern is implemented in TypeScript
  • study real-world examples of the builder pattern
  • refresh my knowledge of GoF patterns before an interview
  • find reference implementations of adapter and decorator patterns
  • teach design patterns to a team with commented examples

When to choose

  • you want clear, well-commented examples of classic design patterns in TypeScript, Java, or PHP
  • you are learning or teaching object-oriented design and want both conceptual and real-world code
  • you want to accompany the free Refactoring.Guru pattern catalog with runnable code

When to avoid

  • you need a production-ready pattern library or framework to import into your project
  • you need code you can redistribute or modify commercially, since the content is CC BY-NC-ND licensed
  • you work in a language other than TypeScript, Java, or PHP

Facets

learning-resource · maturity active

developer-tools documentation developer-tools tutorials programming-languages cross-platform cli design-patterns gof-patterns typescript java php educational-examples refactoring-guru software-architecture nodejs

4 sources

Member repositories

For agents

markdown · JSON · MCP: product_card(name="RefactoringGuru/design-patterns-php")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem