mcmatters/clearbit-api

dev-master 2019-03-20 21:17 UTC

README

Installation

composer require mcmatters/clearbit-api

Usage

<?php

declare(strict_types = 1);

require './vendor/autoload.php';

// For free usage, just ignore $apiKey argument.
$clientFree = new \McMatters\ClearbitApi\ClearbitClient();
$companies = $clientFree->autocomplete()->lookupByCompany('amgrade');

$client = new \McMatters\ClearbitApi\ClearbitClient('sk_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX');
$companies = $client->combined()->lookupByEmail('d.borzyonok@amgrade.com');