Files
shlink/module/IpGeolocation/README.md
2019-08-11 13:06:10 +02:00

29 lines
689 B
Markdown

# Shlink IP Address Geolocation module
Shlink module with tools to geolocate an IP address using different strategies.
## Install
Install this library using composer
composer require shlinkio/shlink-ip-geolocation
> This library is also an expressive module which provides its own `ConfigProvider`. Add it to your configuration to get everything automatically set up.
## *TODO*
```php
<?php
declare(strict_types=1);
return [
'geolite2' => [
'db_location' => __DIR__ . '/../../data/GeoLite2-City.mmdb',
'temp_dir' => sys_get_temp_dir(),
// 'download_from' => 'http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz',
],
];
```