Geocoder FreeGeoIp adapter
This is the Free GeoIp provider from the PHP Geocoder. This is a READ ONLY repository. See the main repo for information and documentation.
Provider Website: https://freegeoip.app
$httpClient = new \Http\Adapter\Guzzle6\Client(); // Use the default provider (https://freegeoip.app) $provider = new Geocoder\Provider\FreeGeoIp\FreeGeoIp($httpClient); // Or provide the endpoint of your instance $provider = new Geocoder\Provider\FreeGeoIp\FreeGeoIp($httpClient, 'http://my.internal.geocoder/json/%s');
By default, it will now use
freegeoip.app (which provides a hosted version of the same API as
You can also use the self hosted variant and supply a host when constructing the provider.
We offer an IpStack provider which you can use if you wish to continue with the new service owner.
composer require geocoder-php/free-geoip-provider