Integrate MaxMind GeoIP2 DB into Magento 2.
We are happy that you have chosen our free extension ToBai GeoIP2. This extension was created especially for Magento 2 developers to make it easier for them to work with different IP databases.
Please follow next instructions to successfully install ToBai GeoIP2 in your Magento 2 store.
Disable the cache with this command:
Add extension to composer require section using this command:
composer require tobai/magento2-geo-ip2
Enable module and upgrade with this commands:
bin/magento module:enable Tobai_GeoIp2 bin/magento setup:upgrade
Check under Stores->Configuration->Advanced->Advanced that the module Tobai_GeoIp2 is present. If Tobai_GeoIp2 displays in alphabetical order, you successfully installed the reference module!
Flush and enable the cache with this commands:
bin/magento cache:flush bin/magento cache:enable
Now you should see new ToBai tab at Stores > Configuration. When you click at this tab you will see GeoIP2 section.