p-12s / get-country-code-by-ip
The package will help you find the country code by ip-address
Installs: 55
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/p-12s/get-country-code-by-ip
Requires
- php: >=5.4
This package is auto-updated.
Last update: 2025-12-18 10:54:48 UTC
README
Will help you find the country code by ip-address
I took the code from the repository https://github.com/dostelon/TabGeo
and remade a little for myself.
Thanks to the author @dostelon
Using:
// require_once('vendor/p-12s/get-country-code-by-ip/src/CountryCodeFinder.php');
$finder = new CountryCodeFinder\CountryCodeFinder();
echo $finder->getCode('178.200.170.41'); // DE
echo $finder->getCode('176.31.69.179'); // BE