定制 korra88/email-list-verify-api-php-client 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Composer 安装命令:

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

包简介

README 文档

README

This library provides a convient interface for email verification with emaillistverify in PHP.

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.

Usage

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

// 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:

$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:

$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:

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.

Official documentation

More information can be found in official documentation here.

统计信息

  • 总下载量: 113
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-11-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固