PHP - Why Use Guzzle Instead of cURL?

前端 未结 3 565
Happy的楠姐
Happy的楠姐 2021-01-30 19:57

In my application, I originally began using cURL to retrieve data from various APIs. Today, I tried using Guzzle to complete the same task. So far, both cURL and Guzzle seem t

3条回答
  •  情深已故
    2021-01-30 20:28

    Guzzle is an abstraction layer for HTTP transport which happens to use cURL where available.

    As well as the above, whilst you can do everything yourself with cURL, Guzzle simplifies things enormously, particularly when it comes to debugging.

提交回复
热议问题