1. Go to this page and download the library: Download depx/phalcon-sypexgeo 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/ */
$geoClass = new \Geo\Geo();
$geoClass->downloadFiles(); // all
$geoClass->downloadFiles('city'); // city
$geoClass->downloadFiles(['city']); // city
$geoClass->downloadFiles('https://sypexgeo.net/files/SxGeoCity_utf8.zip'); // city
$geoClass->downloadFiles(['https://sypexgeo.net/files/SxGeoCity_utf8.zip', 'country']); // city and country
$geoClass = new \Geo\Geo();
$geoClass->downloadFile('https://sypexgeo.net/files/SxGeoCity_utf8.zip');