2017 © Pedro Peláez
 

library email-list-verify-api-php-client

image

korra88/email-list-verify-api-php-client

  • Wednesday, February 14, 2018
  • by korra88
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

EmailListVerify API PHP library

This library provides a convient interface for email verification with emaillistverify in PHP., (*1)

Installation

Install via composer: composer require korra88/email-list-verify-api-php-client. Or download in your project and include the two files in src/ directory., (*2)

Usage

First obtain an api key by registering in emailistverify, creating an application, and set it in the constructor., (*3)

// composer autoloader
require_once '/path/to/vendor/autoload.php';
$emailVerify = new EmailListVerify\APIClient(YOUR_API_KEY);

Then you can either can verify emails one by one with:, (*4)

$email = "your_email@example.com";
try {
    $status = $emailVerify->verifyEmail($email);
} catch (Exception $e) {
    echo "\n" . $e->getMessage();
    $status = false;
}
echo "\n{$email} status: " . ($status ? 'valid' : 'invalid')

Or upload a file with a list of emails in a csv-like format:, (*5)

$email_file_path = __DIR__ . '/email_list.csv';
$email_file_name = 'test_emails.csv';
try {
    $file_id = $emailVerify->verifyApiFile($email_file_name, $email_file_path);
} catch (Exception $e) {
    echo "\n" . $e->getMessage();
}
echo "\nCreated file {$file_id}.";

and monitor it's status with:, (*6)

try {
    $file_info = $emailVerify->getApiFileInfo($file_id);
echo "\nFile status: {$file_info->status}";
} catch (Exception $e) {
    echo "\n" . $e->getMessage();
}

When status is finished you can download the file (using $file_info->link2) and read results., (*7)

Official documentation

More information can be found in official documentation here., (*8)

The Versions

14/02 2018

dev-master

9999999-dev

  Sources   Download

MIT MIT License

by Emanuele Corradini

14/02 2018

v1.3.4

1.3.4.0

  Sources   Download

MIT

by Emanuele Corradini

14/02 2018

dev-develop

dev-develop

  Sources   Download

MIT MIT License

by Emanuele Corradini

16/11 2016

v1.3.3

1.3.3.0

  Sources   Download

MIT License

by Emanuele Corradini

16/11 2016

v1.3.2

1.3.2.0

  Sources   Download

MIT License

by Emanuele Corradini

16/11 2016

v1.3.1

1.3.1.0

  Sources   Download

MIT License

by Emanuele Corradini

14/11 2016

v1.3

1.3.0.0

  Sources   Download

MIT License

by Emanuele Corradini

14/11 2016

v1.2

1.2.0.0

  Sources   Download

MIT License

by Emanuele Corradini

11/11 2016

v1.1

1.1.0.0

  Sources   Download

MIT License

by Emanuele Corradini

11/11 2016

v1

1.0.0.0

  Sources   Download

The Requires

  • php ^5.6 || ^7.0