2017 © Pedro Peláez
 

library iplookup

Get location information based on client ip

image

iplookup/iplookup

Get location information based on client ip

  • Tuesday, July 24, 2018
  • by nathanwu
  • Repository
  • 1 Watchers
  • 0 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

IPLookup

Install

composer require iplookup/iplookup

Lib

Get location information via remote ip address, (*1)

Sample

use IPLookup\Client\TaobaoClient;
use IPLookup\IPLookupService;
use Symfony\Component\Cache\Simple\FilesystemCache;

require dirname(__DIR__) . '/vendor/autoload.php';

$ip = '115.60.19.180';
$iplookupService = new IPLookupService(new TaobaoClient(new FilesystemCache('namespace', 1 * 60 * 60, dirname(__DIR__) . '/runtime/cache')));
echo $iplookupService->lookup($ip) . PHP_EOL;
$ip = \IPLookup\Util::getCurrentIP();
echo $iplookupService->lookup($ip) . PHP_EOL;

License

Copyright 2008-2018., (*2)

Licensed under the GNU Lesser General Public License, Version 3.0, (*3)

The Versions

24/07 2018

dev-master

9999999-dev https://github.com/cunheise/iplookup.git

Get location information based on client ip

  Sources   Download

MIT

The Requires

 

The Development Requires

iplookup

24/07 2018

0.3.1

0.3.1.0 https://github.com/cunheise/iplookup.git

Get location information based on client ip

  Sources   Download

MIT

The Requires

 

The Development Requires

iplookup

11/07 2018

0.3.0

0.3.0.0 https://github.com/cunheise/iplookup.git

Get location information based on client ip

  Sources   Download

MIT

The Requires

 

The Development Requires

iplookup

14/06 2018

0.2.0

0.2.0.0 https://github.com/cunheise/iplookup.git

Get location information based on client ip

  Sources   Download

MIT

The Requires

 

The Development Requires

iplookup

12/06 2018

0.0.1

0.0.1.0 https://github.com/cunheise/iplookup.git

Get location information based on client ip

  Sources   Download

MIT

The Requires

 

The Development Requires

iplookup

12/06 2018

0.1.0

0.1.0.0 https://github.com/cunheise/iplookup.git

Get location information based on client ip

  Sources   Download

MIT

The Requires

 

The Development Requires

iplookup