JacobBennett / SendyPHP

A PHP class built to interface with the Sendy API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use Curl instead of file_get_contents

Rido opened this issue · comments

Hello,

Thank you for the great work! This library will save me a lot of time ;)
But wouldn't it be better to use curl instead of file_get_contents? I've read some blog posts on the internet and the response time is a lot faster with curl.

Thanks!

While CURL has the possibility of being slightly faster, the difference is negligible when dealing with a single call at a time. If you are going to use this library to run 1000 subscription calls in a row, you may want to consider changing the FGC to CURL. Feel free to fork the code and submit a pull request. Would love to have you contribute to the project.