3 ms·
You should consider using Guzzle as the base HTTP client.
by pearjuice 12y ago
You should consider using Guzzle as the base HTTP client.
- johnnyfaehell 12y agoWhy? Seriously other than it's "best practice" why would you do that? You're creating a dependency on a multi-purpose http library when you have a very specific need. Also you have a dependency on curl, but you can use guzzle without curl so you would then need to do your own check to see if curl was enabled. Better off to have it as a hard dependency and use it yourself. Sometimes using premade libraries isn't the best option. I believe this may be one of them.
- treve 12y agoGuzzle is a massive dependency for being just a curl wrapper.
- astrodust 12y agoWhy not use it if it's available? Having support for more than one back-end is always nice.
- johnnyfaehell 12y agoIt does a lot more than just support one method of doing http requests. Also I'm pretty sure there are some stuff curl can do, which streams for example can't.