PHP code example of twisted1919 / zerobounce

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

    

twisted1919 / zerobounce example snippets




// Include Composer autoloader
lient $client */
$client = new ZeroBounce\HttpClient\HttpClient('YOUR-API-KEY');

/** @var ZeroBounce\Api $api */
$api = new ZeroBounce\Api($client);

try {

  /** @var ZeroBounce\Response\ValidateResponse $response */
  $response = $api->validate("[email protected]");

} catch (Exception $e) {

  var_dump($e);
}