Posts Tagged “design patterns”

Data, *Context*, Interaction - the DCI design pattern in PHP 5.4

posted 16 Aug 2013

The DCI design pattern in PHP in the past has only been plausible. But thanks to PHP 5.3 and 5.4, it's now possible to implement the pattern and along the way, demonstrate just how expressive PHP has become in the past 2 years. There are many ways to implement the DCI design pattern, but in this article I'll show you how I've done it - and how you can use it in your own PHP projects, including how to tie in with Laravel 4. Read more