function geoip_libraries_info in GeoIP API 7.2
Implements hook_libraries_info().
File
- ./
geoip.module, line 73 - API for using the MaxMind GeoLite Country database.
Code
function geoip_libraries_info() {
$libraries['geoip-api-php'] = array(
'name' => 'GeoIp V1 - Legacy',
'vendor url' => 'http://dev.maxmind.com/geoip/legacy/downloadable/',
'download url' => 'https://github.com/maxmind/geoip-api-php',
'path' => 'src',
'version arguments' => array(
'file' => 'ChangeLog.md',
'pattern' => '/^\\#\\#\\s+([0-9a-zA-Z\\.-]+)/',
'lines' => 5,
'cols' => 20,
),
'files' => array(
'php' => array(
// We just load this because it will include the other required files.
'geoipcity.inc',
),
),
);
$libraries['GeoIP2-php'] = array(
'name' => 'GeoIP2',
'vendor url' => 'https://github.com/maxmind/GeoIP2-php',
'download url' => 'https://github.com/maxmind/GeoIP2-php',
'version arguments' => array(
'file' => 'vendor/geoip2/geoip2/CHANGELOG.md',
'pattern' => '/^([0-9a-zA-Z\\.-]+)\\s\\(/',
'lines' => 5,
'cols' => 20,
),
'files' => array(
'php' => array(
// We just load this because it will include the other required files.
'vendor/autoload.php',
),
),
);
$libraries['GeoIP2-phar'] = array(
'name' => 'GeoIP2',
'vendor url' => 'https://github.com/maxmind/GeoIP2-php',
'download url' => 'https://github.com/maxmind/GeoIP2-php/releases',
// We can't detect the version in this library package.
'version' => 1,
'files' => array(
'php' => array(
'geoip2.phar',
),
),
);
return $libraries;
}