UPDATE: This article has been updated into a working draft, with PHP-based example code, at http://pmjones.io/adr.
Read the Reddit discussions about this post here and here.
Are you stuck with a legacy PHP application?
You should buy my book
because it gives you a step-by-step guide to improving you
codebase, all while keeping it running the whole time.