2017 in pictures

Another year has passed which gives me an excuse to to reflect on what’s happened. As usual, I look at the photos that I’ve taken and frame my thoughts around them. January I started the year with one of my favourite pictures of the kids. I also spoke at CodeMash …

Generating

When training, I like to provide my attendees with a printed copy of the slides with space next to each one to write notes. This handout has 4 slides to a page, along with a title page and I use pdfjam to create it. Pdfjam is a wonderful command line …

Implementing CORS in Zend Expressive

On a recent project, I needed to implement CORS support for my Expressive API. The easiest way to do this is to use Mike Tuupola‘s PSR-7 CORS Middleware. As this is a standard Slim-Style PSR-7 middleware implementation, we need to wrap it for Expressive, so we make a factory: App/Factory/CorsMiddleware.php: …