thelhc/ip-info

There is no license information available for the latest version (v1.2.2) of this package.

IpInfo Laravel Service Provider

v1.2.2 2020-01-20 15:55 UTC

README

Latest Version on Packagist Software License Total Downloads

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.