Add a Symfony Bundle for the Maxmind GeoIP2 API

This commit is contained in:
Peter Gribanov
2019-07-30 17:05:44 +03:00
parent f205863ddb
commit 19887f0ed8
2 changed files with 17 additions and 0 deletions
@@ -0,0 +1,9 @@
gpslab_geoip:
# Path to download GeoIP database.
cache: '%kernel.cache_dir%/GeoLite2-City.mmdb'
# URL for download new GeoIP database.
url: 'https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz'
# Get model data in this locale
locales: [ '%locale%' ]
+8
View File
@@ -0,0 +1,8 @@
{
"bundles": {
"GpsLab\\Bundle\\GeoIP2Bundle\\GpsLabGeoIP2Bundle": ["all"]
},
"composer-scripts": {
"geoip2:update": "symfony-cmd"
}
}