Companion code and notes to my PHPNW tutorial (2014)