PHP code example of szekeresa / geocoder-freeipapi-provider

1. Go to this page and download the library: Download szekeresa/geocoder-freeipapi-provider library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

szekeresa / geocoder-freeipapi-provider example snippets


$httpClient = new \Http\Discovery\Psr18Client();

$provider = new Geocoder\Provider\FreeIPAPI\FreeIPAPI($httpClient);