kirimemail/clearbit-php

(unofficial) PHP SDK for Clearbit

1.0.1 2019-04-29 17:46 UTC

README

Clearbit API Client. Currently supporting the Enrichment API, but the entire API is on the roadmap for implementation. The current implementation uses v2 endpoints.

Install

Via Composer

$ composer require kirimemail/clearbit-api

Quick Start

This implementation supports using one or multiple api keys. If a single key is used, clients are generated using static functions, otherwise instance methods generate clients.

Using a single key

All of the following examples assume the following step:

use Kirimemail\Clearbit\Clearbit;

Clearbit::setKey('token');

Calculates an associated risk score

$calculate = Clearbit::createRiskApi();
$calculate->risk([ 'email' => 'test@test.com', 'ip' => '127.0.0.1']);

License

The MIT License (MIT). Please see License File for more information.