Skip to content

ModulesSoft/PHP-Design-patterns

Repository files navigation

Design Patterns in PHP

This code is designed to exercise "Design Patterns in PHP" by Keith Casey.

======================

How to Use this Repository

In each of the numbered folders, you will find two directories. The first folder - called before - is what your code might look like before the pattern. While it's not beautiful, it isn't necessarily wrong.. but it can be better. After exploring the "before" folder, check out the "after" folder to see what the code might look like after a bit of refactoring for the design pattern. This isn't the only possible solution or implementation. It just happens to be the one I chose to share.

Contents / Design Patterns Covered

  • Active Record
  • Adapter
  • Decorator
  • Factory
  • Mock Objects
  • Model View Controller (or simply MVC)
  • Action Domain Responder (or simply ADR)
  • Publish-Subscriber
  • Singleton
  • Strategy
  • Table Data Gateway

About

Design patterns in PHP practice project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages