This version of the bundle requires Symfony 2.8+.
composer require chaplean/geolocation-bundle
Add
new Cravler\MaxMindGeoIpBundle\CravlerMaxMindGeoIpBundle(),
new Bazinga\Bundle\GeocoderBundle\BazingaGeocoderBundle(),
new Chaplean\Bundle\GeolocationBundle\ChapleanGeolocationBundle(),
- { resource: @ChapleanGeolocationBundle/Resources/config/config.yml }
Add parameter chaplean_geolocation.api_key
in app/config/parameters.yml
Default api key for chaplean: AIzaSyA4iQOHlCF5nqaEDKk-9IsYAMapdOvIATc