PHP code example of menatwork / maxmind

1. Go to this page and download the library: Download menatwork/maxmind 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/ */

    

menatwork / maxmind example snippets


--verbose  // Print log msg on screen
--dry-run  // Don't import into database, just download it.
--no-mail  // Send no mail notification
--force  // Always import into database. Don't work with dry run.
--language "de"  // Contains the language for the backend.

$GLOBALS['TL_CRON']['monthly'][]    = array('MaxMind\MaxMind', 'run');
$GLOBALS['TL_CRON']['weekly'][]     = array('MaxMind\MaxMind', 'run');
$GLOBALS['TL_CRON']['daily'][]      = array('MaxMind\MaxMind', 'run');

// Contao 3 only
$GLOBALS['TL_CRON']['hourly'][]     = array('MaxMind\MaxMind', 'run');
$GLOBALS['TL_CRON']['minutely'][]   = array('MaxMind\MaxMind', 'run');

cd /var/www/contao/system/modules/maxmind
php MaxMindCaller.php