spatie/guzzle-redirect-history-middleware
Guzzle middleware that records redirect chains for each request. Attach RedirectHistoryMiddleware to your handler stack to capture every Location hop and inspect the final URL and intermediate redirects via a RedirectHistory instance.
Adopt if:
Look elsewhere if:
curl or other HTTP clients).For Executives: "This lightweight package lets us track HTTP redirects—critical for debugging API issues, ensuring compliance, and optimizing performance. It’s a no-code solution from a trusted open-source vendor (Spatie), reducing dev time while improving reliability. Low risk, high reward for observability."
For Engineering: *"Spatie’s Guzzle middleware adds redirect history logging with minimal overhead. Perfect for:
How can I help you explore Laravel packages today?