Join Justin Yost for an in-depth discussion in this video Installing Guzzle, part of Consuming RESTful APIs in PHP with Guzzle.
- [Instructor] So why are we going to use Guzzle…in this course, as opposed to cURL or something else?…We can sum up the reason pretty simply.…Here is a cURL command line interface GET http request.…Notice, we have to call curl,…then we have to pass in each of our headers separately.…Then we have to describe exactly which verb we're sending.…Then, and only then,…can we pass in the URL that we're actually talking to.…And it doesn't look any better…when we do this inside of PHP.…
In PHP, to send a cURL GET request,…it's even more complicated.…We have to call these curl_setopt function calls…to set the particular headers that we need,…and to also define the particular http verb…that we want to send.…This is pretty complicated.…Let's see what it looks like in Guzzle.…In Guzzle, to GET something,…this is it.…That's a Guzzle request.…We create an instance of the client.…We say we want to send a request.…
We define the http verb, the URL we're accessing,…and then we pass an array of options.…This array of options accepts such things as the headers,…
- 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
PHP: Clean URLs on Apache Serverwith David Powers1h 35m Intermediate
PHP: Managing Persistent Sessionswith David Powers2h 41m Intermediate
1. Guzzle Basics
2. Requests with Guzzle
3. Responses with Guzzle
4. Guzzle and PSR-7
5. Testing and Guzzle
Next steps1m 12s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.