awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
DesignPatternsPHP avatar

DesignPatternsPHP/DesignPatternsPHP

0
View on GitHub↗
22,188 stars·4,523 forks·PHP·MIT·14 views

DesignPatternsPHP

DesignPatternsPHP is a reference collection of sample code implementations for common software design patterns using PHP 8.x. It provides a set of examples for implementing creational, structural, and behavioral patterns to organize object-oriented design.

The project includes reference implementations for creational patterns that decouple systems from object instantiation, structural patterns that define how classes organize into complex components, and behavioral patterns that manage algorithms and responsibilities between objects.

Features

  • Design Pattern Implementations - Provides a comprehensive collection of isolated, reusable code examples implementing common structural and behavioral design patterns.
  • PHP Behavioral Patterns - Manages how objects communicate and distribute responsibilities using proven PHP coding structures.
  • PHP Creational Patterns - Decouples the system from the specific process of instantiating and initializing objects within PHP.
  • PHP Structural Patterns - Organizes classes and objects into complex components to ensure a flexible and scalable PHP system.
  • Behavioral Design Patterns - Provides reference implementations for behavioral design patterns to manage communication and responsibilities between objects.
  • Creational Design Patterns - Implements creational design patterns to decouple the system from the object instantiation process.
  • Design Pattern Collections - Serves as a curated collection of sample code implementing common software design patterns using PHP 8.x.
  • Object Oriented Design - Implements standard object-oriented design principles and patterns to organize PHP classes and objects.
  • Structural Design Patterns - Implements structural design patterns that define how classes and objects are composed into complex components.
  • Concrete Implementations - Implements specific logic by extending base classes or interfaces to create distinct object behaviors.
  • Interface Contract Implementations - Uses PHP interfaces to define abstract method sets that decouple object definitions from their implementations.
  • Composite Patterns - Organizes objects into tree-like hierarchies where individual elements and compositions are treated uniformly.
  • Factory Method Patterns - Implements factory methods to centralize object creation logic and hide constructor complexity.
  • Observer Patterns - Implements mechanisms allowing objects to subscribe to state changes in other objects via a notification system.
  • Composition Over Inheritance - Provides reference implementations of design approaches that favor object composition over deep inheritance hierarchies.
  • Singleton Service Stores - Provides implementations of the singleton pattern to manage shared application state and global access.
  • Strategy Patterns - Encapsulates different behaviors into separate classes that can be swapped at runtime via a common interface.
  • Architectural Patterns - Provides implementations of common software design patterns.
  • Design Patterns - Comprehensive collection of design patterns implemented in PHP 8.1+.

Star history

Star history chart for designpatternsphp/designpatternsphpStar history chart for designpatternsphp/designpatternsphp

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does designpatternsphp/designpatternsphp do?

DesignPatternsPHP is a reference collection of sample code implementations for common software design patterns using PHP 8.x. It provides a set of examples for implementing creational, structural, and behavioral patterns to organize object-oriented design.

What are the main features of designpatternsphp/designpatternsphp?

The main features of designpatternsphp/designpatternsphp are: Design Pattern Implementations, PHP Behavioral Patterns, PHP Creational Patterns, PHP Structural Patterns, Behavioral Design Patterns, Creational Design Patterns, Design Pattern Collections, Object Oriented Design.

Which projects share features with designpatternsphp/designpatternsphp?

Projects with overlapping indexed features include: domnikl/designpatternsphp — DesignPatternsPHP is a reference collection of software architecture patterns implemented in PHP 8. It provides a… faif/python-patterns — This project is a comprehensive collection of software design patterns implemented in Python. It serves as a reference… youlookwhat/designpattern — This project is a comprehensive library of twenty-three standard software design patterns implemented in Java. It… tcorral/design-patterns-in-javascript — This repository serves as a reference for implementing standard software design patterns within JavaScript… dbacinski/design-patterns-in-kotlin — This project is a reference collection of practical examples demonstrating the implementation of common software… senghoo/golang-design-pattern — This project is a collection of software design patterns implemented in Go, serving as a technical reference and a set…

Projects sharing features with DesignPatternsPHP

These projects share indexed features with DesignPatternsPHP. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • domnikl/designpatternsphpdomnikl avatar

    domnikl/DesignPatternsPHP

    22,188View on GitHub↗

    DesignPatternsPHP is a reference collection of software architecture patterns implemented in PHP 8. It provides a guide for object-oriented programming through sample code demonstrating creational, structural, and behavioral design patterns. The project includes reference implementations for common patterns such as factories, builders, singletons, adapters, bridges, and proxies. Each implementation is accompanied by a PHPUnit test suite to verify that the patterns behave correctly and produce expected logical outcomes. The codebase covers a broad range of architecture capabilities, including

    PHP
    View on GitHub↗22,188
  • faif/python-patternsfaif avatar

    faif/python-patterns

    42,801View on GitHub↗

    This project is a comprehensive collection of software design patterns implemented in Python. It serves as a reference for architectural, behavioral, creational, and structural patterns to guide the organization of Python applications. The collection covers behavioral strategies for managing object communication and state, creational techniques for controlling object instantiation, and structural methods for composing classes and objects into flexible hierarchies. It also includes architectural references for system-wide structuring, such as multi-tier architectures and blackboard models. Th

    Pythondesign-patternsidiomspython
    View on GitHub↗42,801
  • youlookwhat/designpatternyoulookwhat avatar

    youlookwhat/DesignPattern

    5,115View on GitHub↗

    This project is a comprehensive library of twenty-three standard software design patterns implemented in Java. It serves as an educational resource that maps theoretical architectural concepts to practical object-oriented code. The library organizes these patterns into three primary categories: creational patterns for managing object instantiation, structural patterns for organizing class and object relationships, and behavioral patterns for coordinating communication and responsibility between objects. The implementation provides concrete class examples for a wide range of industry-standard

    Javadesignpatterndesignpatternsjava
    View on GitHub↗5,115
  • tcorral/design-patterns-in-javascripttcorral avatar

    tcorral/Design-Patterns-in-Javascript

    2,623View on GitHub↗

    This repository serves as a reference for implementing standard software design patterns within JavaScript environments. It provides a collection of structural, creational, and behavioral patterns designed to assist developers in organizing complex application logic and improving overall code maintainability. The project demonstrates how to apply object-oriented principles to decouple object creation from core business logic and manage communication between objects. By utilizing these patterns, developers can structure classes and object interactions to ensure code remains modular and flexibl

    JavaScript
    View on GitHub↗2,623
Compare all 30 related projects→