twisted1919/zerobounce

ZeroBounce Email Verification Library for PHP

1.0.3 2019-10-30 07:06 UTC

This package is auto-updated.

Last update: 2024-04-29 04:33:28 UTC


README

Getting Started

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.

Installation

Make sure you have composer installed.

Require the package

$ composer require twisted1919/zerobounce

PHP Versions

Requires PHP >= 7.1

Usage

<?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)

License

MIT

Test

$ composer test

Bug Reports

Report here.