Download the PHP package easyemailverification/php-sdk without Composer
On this page you can find all versions of the php package easyemailverification/php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download easyemailverification/php-sdk
More information about easyemailverification/php-sdk
Files in easyemailverification/php-sdk
Package php-sdk
Short Description Official PHP client for the Easy Email Verification API: verify email addresses one by one, in batches of 50 or as bulk lists.
License MIT
Homepage https://www.easyemailverification.com/en-US/api
Informations about the package php-sdk
Easy Email Verification for PHP
Official PHP client for the Easy Email Verification API: check whether email addresses exist and are safe to send to, one by one, in batches of 50 or as bulk lists of up to 16 MB. No email is sent to the addresses you verify.
- PHP 8.1+, only the
curlandjsonextensions - Free sandbox key to test without an account or credits
Install
Quick start
Get your API key in the dashboard under API settings and keep it on the server, in the EEV_API_KEY environment variable. Never put it in browser code; for web forms use the email verification widget.
Results
Every verification returns result (valid, invalid or unknown), a reason and risk signals:
| Field | Meaning |
|---|---|
result |
valid: the mail server accepted the mailbox. invalid: it will bounce. unknown: no reliable answer (not invalid). |
reason |
Why, for example accepted_email, rejected_email, invalid_domain, no_mx_record, timeout. |
safe_to_send |
Overall recommendation. false for invalid and unknown results, catch-all domains and disposable addresses. |
did_you_mean |
Corrected address when a typo is detected (gmial.com → gmail.com), otherwise ''. |
disposable, accept_all, role, free |
Risk signals: temporary inbox, catch-all domain, role address (info@), free provider. |
Client::decide($r) turns a result into 'accept', 'reject', 'suggest' (show did_you_mean) or 'review' (unknown, catch-all or disposable: your policy decides). Every result code is explained at easyemailverification.com/en-US/help/result-codes.
Batch: up to 50 addresses
Bulk lists
For files with thousands of addresses (TXT or CSV, one address per line, up to 16 MB). The account needs enough credits for every address. Bulk does not work with the sandbox key.
Credits
Each verified address uses one credit; unknown results do not. The free plan includes 50 verifications a day. See pricing.
Errors
API errors throw EasyEmailVerification\EEVException with the HTTP status and the API message:
| Status | Meaning |
|---|---|
| 400 | Missing key or parameter, or a non-sandbox address with the sandbox key |
| 401 | Unknown key, or a widget-only key |
| 402 | No credits left |
| 404 | Bulk job not found |
| 429 | Sandbox rate limit |
| 0 | Raised by the client (network error, timeout, more than 50 addresses in a batch) |
Do not retry verifications in a tight loop: a request that timed out may already have used a credit.
Upgrading from the first version
EasyEmailVerificationClient still works as before (verifyEmail() returns an array and does not throw), now on top of the new client. New code should use EasyEmailVerification\Client.
Sandbox addresses
With Client::SANDBOX_API_KEY, these addresses return fixed answers: valid@, invalid@, unknown@, disposable@, catchall@, role@, quota@ (402) and ratelimit@ (429) at sandbox.easyemailverification.com, plus [email protected] (did you mean). Sandbox calls are limited to 60 per minute per IP.
Links
- Email verification API and API reference
- Validate email addresses in PHP: filter_var and a mailbox check, without sending an email
- Mautic plugin
- Also distributed on SourceForge
- Support: [email protected]
License
MIT
All versions of php-sdk with dependencies
ext-curl Version *
ext-json Version *