PHP code example of mcmatters / clearbit-api

1. Go to this page and download the library: Download mcmatters/clearbit-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mcmatters / clearbit-api example snippets




declare(strict_types=1);

$apiKey argument.
$clientFree = new \McMatters\ClearbitApi\ClearbitClient();
$companies = $clientFree->autocomplete()->lookupByCompany('amgrade');

$client = new \McMatters\ClearbitApi\ClearbitClient('sk_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX');
$companies = $client->combined()->lookupByEmail('[email protected]');