Download the PHP package seymourlabs/ipapi-lookup without Composer
On this page you can find all versions of the php package seymourlabs/ipapi-lookup. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download seymourlabs/ipapi-lookup
More information about seymourlabs/ipapi-lookup
Files in seymourlabs/ipapi-lookup
Download seymourlabs/ipapi-lookup
More information about seymourlabs/ipapi-lookup
Files in seymourlabs/ipapi-lookup
Vendor seymourlabs
Package ipapi-lookup
Short Description IP lookup library for the ipapi.co service
License MIT
Homepage https://github.com/seymourlabs/ipapi-lookup
Package ipapi-lookup
Short Description IP lookup library for the ipapi.co service
License MIT
Homepage https://github.com/seymourlabs/ipapi-lookup
Please rate this library. Is it a good library?
Informations about the package ipapi-lookup
ipapi-lookup
Perform IP lookups using the ipapi.co service
Installation
This library is installed via Composer. To install, simply add it
to your composer.json
file:
And run composer to update your dependencies:
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update
Basic Usage
Using the library;
require('vendor/autoload.php');
$client = new \Seymourlabs\ipapi\Client('8.8.8.8');
$response = $client->request();
$ip = $response->getIp();
$city = $response->getCity();
$region = $response->getRegion();
$country = $response->getCountry();
$postal = $response->getPostal();
$latitude = $response->getLatitude();
$longitude = $response->getLongitude();
$timezone = $response->getTimezone();
$asn = $response->getAsn();
$org = $response->getOrg();
Using a paid key with the service;
$client = new \Seymourlabs\ipapi\Client('8.8.8.8', 'myKey');
All versions of ipapi-lookup with dependencies
PHP Build Version
Package Version
Requires
guzzlehttp/guzzle Version
~6.0
The package seymourlabs/ipapi-lookup contains the following files
Loading the files please wait ....