Retrying and Logging Requests with Guzzle

When consuming 3d party API, you may want to do two things: Retrying. Usually you can retry your requests on 500 responses received from server. Logging. It is considered a good practice to log requests you send and responses you get back. In this article we will look at how to implement the above features…