mcmatters/clearbit-api

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

v1.0 2020-06-13 21:10 UTC

This package is auto-updated.

Last update: 2021-11-14 00:34:14 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');