Logging Guzzle Requests

When you’re building an API consumer, you should log your API requests and responses. Otherwise it can feel like you’re working blind. Here I’ll explain how to configure a Guzzle Middleware to log requests to a file. This is useful for debugging and historical purposes. The way to do this is to pass a new HandlerStack with our logging middleware… Continue reading Logging Guzzle Requests

Don’t Build Salmon Cannons

Today I learned about Salmon Cannons. Salmon have evolved to swim up river to spawn, but the introduction of dams has created a sometimes impossible obstacle for salmon to overcome. A clever solution has been found in the way of the Salmon Cannon – a slippery tube that sucks salmon over obstacles so that they can… Continue reading Don’t Build Salmon Cannons

Things I Used To Do (That Aren’t Cool Now)

I’m the proud owner of WhichBeach – the website that tells you which beach is best to visit (in Malta) based on the weather, updated hourly. As I’m picking up the codebase ahead of this Summer’s updates, I can’t help but review and refactor the existing code. It’s interesting to dissect previous design decisions. Also, I’ve learnt… Continue reading Things I Used To Do (That Aren’t Cool Now)