I've written quite a few extensions that need a way to fetch data from the web. Sometimes I've used file_get_contents sometimes cURL, other times I've sucked in (geddit!) Guzzle. Each of those has it's own requirements.

Just want to check that CiviCRM does not offer a service/wrapper for this that knows what is available? What's recommended?


I'm unsure what's recommended, but there are several patterns (at least) through the codebase:

I like using Guzzle in extensions - but I'm uncertain what would happen if CiviCRM core now decided to bundle a different version of Guzzle to the one used in my extensions?

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.