1. Go to this page and download the library: Download opendi/nominatim 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/ */
opendi / nominatim example snippets
use Opendi\Nominatim\Nominatim;
$url = "http://nominatim.openstreetmap.org/";
$nominatim = Nominatim::newInstance($url);
$search = $nominatim->newSearch();
$search->query('1600 Pennsylvania Ave NW, Washington, DC 20500, United States');
$nominatim->find($search);