This code is designed to exercise "Design Patterns in PHP" by Keith Casey.
======================
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.
- 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