In order to use this class you need to include GeoIP db. you can find the database HERE: https://dev.maxmind.com/geoip/geoip2/geolite2/ and the .phar OR composer HERE: https://github.com/maxmind/GeoIP2-php
info at phpclasses dot org