PHP code example of wlbrough / clearbit-api

1. Go to this page and download the library: Download wlbrough/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/ */

    

wlbrough / clearbit-api example snippets


use wlbrough\clearbit\Clearbit;

Clearbit::setKey('token');

$enrichment = Clearbit::createEnrichmentApi();

// Webhook endpoint
$enrichment->setWebhookEndpoint('https://test.com/api/webhook');

// Streaming
$enrichment->enableStreaming();

$enrichment = Clearbit::createEnrichmentApi();
$enrichment->combined('[email protected]');

$enrichment = Clearbit::createEnrichmentApi();
$enrichment->person('[email protected]');

$enrichment = Clearbit::createEnrichmentApi();
$enrichment->person('[email protected]', true);

$enrichment = Clearbit::createEnrichmentApi();
$enrichment->company('test.com');

$nameToDomain = Clearbit::createNameToDomain();
$nameToDomain->get('Segment');