[Lynda] Consuming RESTful APIs in PHP with Guzzle

Tags: , , , ,

image of author Justin YostJustin Yost



Guzzle—a PHP HTTP client—provides a simple interface for sending HTTP requests and receiving responses. In this course, learn how to write code using Guzzle to consume RESTful APIs. Instructor Justin Yost shows how to install Guzzle, send basic, asynchronous, and concurrent requests, and process responses, headers, and exceptions. He also shows how Guzzle works with PSR-7, the PHP community-provided specification that defines interfaces for HTTP messages. Plus, Justin shows how to test basic and advanced Guzzle mock responses.

Topics include:

  • Installing Guzzle
  • Sending basic requests
  • Sending asynchronous requests
  • Sending concurrent requests
  • Sending query data
  • Sending request data
  • Advanced Guzzle request options
  • Reviewing basic Guzzle responses
  • Processing response headers
  • Reviewing PSR-7 requests, responses, bodies, and headers
Skill Level Intermediate

2h 12m



Friendly Websites

OneHack.Us | Tutorials For Free, Guides, Articles & Community Forum.

Size: 362.62M

Leave a Comment