PHP client for Clearip web-service API to determine location of visitors based on their IP.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/Clearip
tests/ClearipTest
.gitignore
.travis.yml
_config.yml
composer.json
composer.phar
phpunit.xml
readme.md

readme.md

clearip.io PHP client Build Status

php client library for clear ip

Installation

composer require clearip/clearip-php

usage

Get ip info:


<?php
require_once __DIR__ . '/../vendor/autoload.php';

use Clearip\Client;

$clearip = new Client('API Key Here');

try {

    var_dump($clearip->IPInfoApi->GetAllDataByIP('IP Here'));

} catch (Exception $e) {
    echo $e->getMessage();
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT