• Blog
  • About
  • Services

Patterns for the Rest of Us

Design patterns explained in plain language with real-world PHP examples. Covers decorator, proxy, adapter, bridge, visitor, middleware, repository, and more.

  • The infamous Repository Pattern in PHP

    The infamous Repository Pattern in PHP

    Patterns for the Rest of Us

    The repository pattern is a data source abstraction that behaves like a collection; containing domain (value) objects.

  • How the PHP Middleware Pattern works and can easily be applied

    How the PHP Middleware Pattern works and can easily be applied

    Patterns for the Rest of Us

    The Middleware Pattern allows you to easily change the input and output of an action; one layer at a time.

  • Using the Visitor Pattern in PHP

    Using the Visitor Pattern in PHP

    Patterns for the Rest of Us

    The Visitor Pattern opens up your entities to extension without changing them (much); and keeps the code separate.

  • Adapter Pattern vs. Bridge Pattern

    Adapter Pattern vs. Bridge Pattern

    Patterns for the Rest of Us

    The Adapter pattern and the Bridge Pattern have brought along a lot of confusion. Time to connect the dots.

  • Decorator Pattern vs. Proxy Pattern

    Decorator Pattern vs. Proxy Pattern

    Patterns for the Rest of Us

    Although similar, Decorators and Proxies are not the same. It all depends on their intent.

  • Want to know about future blog posts?
    Then sign up for my newsletter!

    I'll only send mails if I actually have something to tell.

    © 2026 doeken.org
    • Contact
    Search articles