PHP library to connect to the emaillistverify.com API.
- PHP >= 8.0
- Composer
Add the following to composer.json
{
"require": {
"anibalealvarezs/email-list-verify-php": "*"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/anibalealvarezs/email-list-verify-php"
}
]
}
Install all composer dependencies using:
composer install
Or install it via GitHub
composer require anibalealvarezs/email-list-verify-php
require_once('/path/to/EmailListVerifyPHP/vendor/autoload.php');
$verify = new EmailListVerifyPHP\ApiClient();
$verify->setConfig([
'apiKey' => 'YOUR_API_KEY',
]);
$response = $verify->email->checkEmail('email@email');
print_r($response);
The client library must be configured to pass the API as a URL parameter.
The APIClient class lets you set various configuration options like timeouts, host, user agent, and debug output.