bcismariu / emailoversight-php
Simple PHP wrapper for EmailOversight API
Installs: 2 830
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 2
Open Issues: 0
This package is auto-updated.
Last update: 2024-11-13 06:00:59 UTC
README
EmailOversight is a set of powerful tools that enable you to take your data management and email campaigns to the next level.
This is a simple PHP implementation of the API calls.
Installation
Update your composer.json
file
{ "require": { "bcismariu/emailoversight-php": "0.*" } }
Run composer update
Usage
use Bcismariu\EmailOversight\EmailOversight; $validator = new EmailOversight('YOUR_API_KEY'); $result = $validator->emailValidation('client.email@domain.com', 'your_list_id');
Read the official API for more details regarding parameters and responses.
In order to help with multiple queries, you can also pass your listId
to the constructor:
$validator = new EmailOversight([ 'apitoken' => 'YOUR_API_KEY', 'listid' => 'your_list_id' ]); $result1 = $validator->emailValidation('first.client@domain.com'); $result2 = $validator->emailValidation('second.client@domain.com');
Return Email validation Boolean
$validEmail = $validator->isVerified($result);
use example:
if($validEmail) {
// Good Email
}else {
// Bad Email
}
Contributions
This is a very basic implementation that can only handle email validations. Any project contributions are welcomed!