A Laravel package to get the client's country using the ip. A wrapper for http://ip2nation.com
v1 2014-12-29 15:57 UTC
Tries to guess the country code of the client, using his IP.
$service = App::make('Dimsav\IpService\IpService'); // country code for the given ip address echo $service->getCountryCodeFromIp('184.108.40.206'); // country code for the client's ip address echo $service->getCountryCodeFromClientIp();