Skip to content
ZeroBounce Email Verification Library for PHP
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
src
test
.gitignore
LICENSE
README.md
composer.json
phpstan.neon
phpunit.xml.dist

README.md

ZeroBounce Email Verification Library for PHP

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.

You can’t perform that action at this time.