thelhc/ip-info
IpInfo
Install
Via Composer
$ composer require thelhc/ip-info
After installing, add the ServiceProvider to the providers array in config/app.php.
TheLHC\IpInfo\IpInfoServiceProvider::class
Then add the Facade to the aliases array
'IpInfo' => TheLHC\IpInfo\Facades\IpInfo::class,
Usage
use IpInfo;
$ip = IpInfo::lookup('###.###.###.###');
License
The MIT License (MIT). Please see License File for more information.