I've created a wrapper for ipinfo.io. You can install it using composer.
You can use it in this way:
$ipInfo = new DavidePastore\Ipinfo\Ipinfo();
//Get all the properties
$host = $ipInfo->getFullIpDetails("8.8.8.8");
//Read all the properties
$city = $host->getCity();
$country = $host->getCountry();
$hostname = $host->getHostname();
$ip = $host->getIp();
$loc = $host->getLoc();
$org = $host->getOrg();
$phone = $host->getPhone();
$region = $host->getRegion();