| Package Data | |
|---|---|
| Maintainer Username: | dimsav |
| Maintainer Contact: | ds@dimsav.com (Dimitris Savvopoulos) |
| Package Create Date: | 2014-12-29 |
| Package Last Update: | 2020-01-10 |
| Home Page: | |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-02 15:13:23 |
| Package Statistics | |
|---|---|
| Total Downloads: | 50 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 118 |
| Total Watchers: | 6 |
| Total Forks: | 14 |
| Total Open Issues: | 2 |
Tries to guess the country code of the client, using his IP.
Download and import the ip database from ip2nation.com
$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();