1. Go to this page and download the library: Download geocodefarm/geocodefarm-php 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/ */
geocodefarm / geocodefarm-php example snippets
eocodeFarm\GeocodeClient;
// Initialize the client with your API key
$client = new GeocodeClient('YOUR_API_KEY');
// Forward geocoding: address to lat/lon
$response = $client->forward('30 N Gould St, Sheridan, WY');
print_r($response);
// Reverse geocoding: lat/lon to address
$response = $client->reverse(44.797773, -106.954918);
print_r($response);