maxmind / GeoIP2-php

PHP API for GeoIP2 webservice client and database reader
https://maxmind.github.io/GeoIP2-php/
Apache License 2.0
2.35k stars 279 forks source link

[Feature Request] Add a updater feature inside maxmind official GeoIP2 php SDK #226

Open AutisticShark opened 6 months ago

AutisticShark commented 6 months ago

Could Maxmind maintain a PHP version of updater or directly integrate such a function into the SDK itself? Something like this:

use GeoIp2\Database\Updater;

...

$updater = new Updater('account_id', 'license_key', '/storage/GeoLite2', ['GeoLite2-City', 'GeoLite2-Country']);

...

$updater->run();

I know there is an official updater that is written in Go, but it's kinda weird to ship a 5.33MB binary along with other open-source PHP code and I want a trusted dependency in our open-source projects to prevent such a thing from ever happening again.

christophermluna commented 6 months ago

Building an equivalent to our geoipupdate tool in additional languages goes beyond the scope of the support that we normally provide, and I don't anticipate we'll have the resources to devote to this in the near future.