LaravelPackages.net
Acme Inc.
Toggle sidebar
mostafaabdelbaset/laravel-ip-service

A Laravel package to get the client's country using the ip. A wrapper for http://ip2nation.com

11
0
2.0
About mostafaabdelbaset/laravel-ip-service

mostafaabdelbaset/laravel-ip-service is a Laravel package for a laravel package to get the client's country using the ip. a wrapper for http://ip2nation.com. It currently has 0 GitHub stars and 11 downloads on Packagist (latest version 2.0). Install it with composer require mostafaabdelbaset/laravel-ip-service. Discover more Laravel packages by mostafaabdelbaset or browse all Laravel packages to compare alternatives.

Last updated

Laravel IP Service

Tries to guess the country code of the client, using his IP.

Installation

Download and import the ip database from ip2nation.com

Usage

$service = App::make('Dimsav\IpService\IpService');


// country code for the given ip address

echo $service->getCountryCodeFromIp('123.123.123.123');


// country code for the client's ip address

echo $service->getCountryCodeFromClientIp(); 

Star History Chart