Adapters and Makers

I have an opinion on two personality traits that exist on opposite ends of a spectrum: adapters and makers.

Laravel/Symfony Console Commands & Stderr

When we use Symfony's Console component to write CLI commands in PHP (and you should!), we're almost always writing any output to "stdout". This isn't necessarily good.

Hexagonal Architecture

I recently gave a talk on Hexagonal Architecture at Laracon NYC. The feedback was great, but seemed to have left people wanting for some extra explanation and of course examples. This is an attempt to expand on the ideas of that presentation.


Since Ubuntu 14.04 is released, and most of the kinks are worked out, I wanted to let you know how I see Vaprobash moving forward.

How We Code: ORMs and Anemic Domain Models

In this article, I'm going to cover an example of implementing some business logic in our usual Active Record patterns, and then I'll show how the same logic can be applied using the Data Mapper pattern. In both cases, we'll see how we can move our business logic into our business entities, thus avoiding anemic business domain. We'll also cover pros and cons of the two styles of ORMs and how they affect the way we write our code.

HHVM, Nginx and Laravel

Lots of people have been asking about how to install HHVM with Nginx for use with Laravel. Here's how! This will cover material used in Vaprobash, my project for configuring Ubuntu virtual machine with Vagrant.