Featured resource
2026 Tech Forecast
2026 Tech Forecast

Stay ahead of what’s next in tech with predictions from 1,500+ business leaders, insiders, and Pluralsight Authors.

Get these insights
  • Course

Consuming a REST API with Guzzle and PHP

Guzzle is an HTTP client that provides methods which make sending HTTP requests, processing the response, and interacting with web services easy. It provides a very clean API, uses PSR-7 interfaces, and has built-in unit testing support.

Intermediate
1h 26m
(11)

Created by Annapurna Siddhartha

Last Updated Aug 29, 2019

Course Thumbnail
  • Course

Consuming a REST API with Guzzle and PHP

Guzzle is an HTTP client that provides methods which make sending HTTP requests, processing the response, and interacting with web services easy. It provides a very clean API, uses PSR-7 interfaces, and has built-in unit testing support.

Intermediate
1h 26m
(11)

Created by Annapurna Siddhartha

Last Updated Aug 29, 2019

Get started today

Access this course and other top-rated tech content with one of our business plans.

Try this course for free

Access this course and other top-rated tech content with one of our individual plans.

This course is included in the libraries shown below:

  • Core Tech
What you'll learn

Guzzle is an HTTP client that makes the interaction with the web services easy. It provides methods which make sending HTTP requests and processing the responses easy, and it can be used instead of cURL. While cURL is one of the most adapted tools for the interaction with APIs, there are benefits of using Guzzle over cURL. For example, Guzzle provides a very clean API to work with, is very well documented, and has built-in unit testing support - which cURL doesn't have. All in all, guzzle provides a comparatively cleaner and easier way to mock the HTTP layer. Besides all this, guzzle uses the PSR-7 interface, so you can use any library that implements the PSR-7 standards with Guzzle. This course, Consuming a REST API with Guzzle and PHP, will teach you how to use Guzzle to consume REST APIs, including how you can use Guzzle to create synchronous and asynchronous requests, how to deal with exceptions, and how to process the response and headers. It will also give an insight into using the PSR-7 standard with Guzzle. By the time you're finished with this course, you'll feel confident using Guzzle in your applications.

Consuming a REST API with Guzzle and PHP
Intermediate
1h 26m
(11)
Table of contents

About the author
Annapurna Siddhartha - Pluralsight course - Consuming a REST API with Guzzle and PHP
Annapurna Siddhartha
6 courses 4.5 author rating 182 ratings

Annapurna is a full stack developer and has experience in Android App and web development. She likes sharing knowledge so that the developers around get boost for their passion.

Get started with Pluralsight