1. Go to this page and download the library: Download atchondjo/geoip2country 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/ */
try
{
$IP2CountryBackend = new iriven\GeoIP2CountryServer();
$IP2CountryBackend->updateDatabase();
} catch (\Throwable $th) {
trigger_error($th->getMessage(), E_USER_ERROR);
}
/*
* NOTE: In order to encourage people to support this project, database update components are not
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.