You will need a zerobounce account to get started.
Once you get an account, you will need to get an api key
to use it in the API calls.
Make sure you have composer installed.
Require the package
$ composer require twisted1919/zerobounce
Requires PHP >= 7.1
<?php
// Include Composer autoloader
require_once 'vendor/autoload.php';
/** @var ZeroBounce\HttpClient\HttpClient $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("test@example.com");
} catch (Exception $e) {
var_dump($e);
}
(see more in the /example
folder)
MIT
$ composer test
Report here.