# iplookup **Repository Path**: nathanwu/iplookup ## Basic Information - **Project Name**: iplookup - **Description**: Get location information via remote ip address - **Primary Language**: PHP - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-06-12 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README IPLookup ============ Install ------- composer require iplookup/iplookup Lib --- Get location information via remote ip address Sample ------ 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'))); echo $iplookupService->lookup($ip) . PHP_EOL; $ip = \IPLookup\Util::getCurrentIP(); echo $iplookupService->lookup($ip) . PHP_EOL; License ------- Copyright 2008-2018. Licensed under the [GNU Lesser General Public License, Version 3.0](https://www.gnu.org/licenses/lgpl.txt)