Fetching data from a remote server has become a very common task these days. Unless you are very new to web programming, you must have, at some point, written code to fetch something from a remote server, be it JSON, XML, text or even an image. Most PHP developers are used to using cURL to perform such tasks. However, there’s a better alternative: the Guzzle HTTP client. It has a more intuitive API, and using it means writing less code.
In this screencast, I’m going to show you how to download an RSS feed using Guzzle. You can find the code sample for this screencast on GitHub.
Jump Start Git, 2nd Edition
Visual Studio Code: End-to-End Editing and Debugging Tools for Web Developers