mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-11 15:16:55 +03:00
Add a Symfony Bundle for the Maxmind GeoIP2 API
This commit is contained in:
@@ -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%' ]
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"bundles": {
|
||||
"GpsLab\\Bundle\\GeoIP2Bundle\\GpsLabGeoIP2Bundle": ["all"]
|
||||
},
|
||||
"composer-scripts": {
|
||||
"geoip2:update": "symfony-cmd"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user