PHP code example of enrich-data / enrich-api-php

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

    

enrich-data / enrich-api-php example snippets




$client = new Enrich();

$client->authenticate("ui_xxxxxx", "sk_xxxxxx");

$data = $client->enrich->person([
  "email" => "[email protected]"
]);

// Make sure to replace 'user_id' and 'secret_key' with your tokens
$client->authenticate("user_id", "secret_key");

$data = $client->verify->validateEmail([
  "email" => "[email protected]"
]);

$data = $client->enrich->person([
  "email" => "[email protected]"
]);

$data = $client->enrich->company([
  "domain" => "crisp.chat"
]);

$data = $client->enrich->network([
  "ip" => "178.62.89.169"
]);