gamalan / emaillistverify-api
EmailListVerify API
Installs: 111
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/gamalan/emaillistverify-api
Requires
- ext-curl: *
Requires (Dev)
- phpunit/phpunit: ~8.0
- vlucas/phpdotenv: ^2.0
This package is auto-updated.
Last update: 2025-09-13 16:31:59 UTC
README
This library will allow you to integrate the EmailListVerify API in your project.
Prerequisites
You need an active account at EmailListVerify to use this library. From there, grab your API Key under API by creating new api app.
Usage
use Gamalan\EmailListVerify\EmailListVerify; use Gamalan\EmailListVerify\SingleResult; // You can configure timeout by using parameter, default is 15 $client = new EmailListVerify('API_KEY', 30); try{ $result = $client->verifyEmail('mail@example.com'); switch ($result->getStatus()){ case SingleResult::VALIDATION_OK: // Do something break; case SingleResult::VALIDATION_ANTISPAM_SYSTEM: // Do somethin else break; default: break; } }catch (\Gamalan\EmailListVerify\APIError $error){ // Handle Error }