thelhc/ip-info

IpInfo Laravel Service Provider
31,505
Install
composer require thelhc/ip-info
Latest Version:v1.2.2
PHP:~5.6|~7.0|~7.1|~7.2|~7.3
Last Updated:Apr 19, 2023
Links: GitHub  ·  Packagist
Maintainer: thelhc

IpInfo

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.