bradcornford / Googlmapper

An easy way to integrate Google Maps with Laravel
MIT License
464 stars 142 forks source link

file_get_contents replaced by Curl #358

Closed tomredhot closed 4 years ago

tomredhot commented 4 years ago

Hi! I got an error when i use "::Location()". Because of my local environnement (Laragon) I got an openSSL issue and file_get_contents return an error image

file_get_contents can be replaced by curl. I think curl is more accurate, faster & with CURLOPT_SSL_VERIFYPEER to false, i have no more error.

bradcornford commented 4 years ago

Hi, Thanks for raising this, but I'm a bit adverse to merging this due to the verify peer being off as it wont validate the servers SSL certificate, so could cause security issues.

What OS are you using for your development environment? Have you tried updating your CA Certificates?