everapi/emailvalidation-php

A PHP wrapper for the emailvalidation.io API

1.0 2023-05-19 06:57 UTC

This package is auto-updated.

Last update: 2024-07-22 17:35:59 UTC


README

emailvalidation-php - Email Validation & Verification API

Latest Version on Packagist Total Downloads

This package is a PHP wrapper for emailvalidation.io that aims to make the usage of the API as easy as possible in your project.

Installation

You can install the package via composer:

composer require everapi/emailvalidation-php

Usage

Initialize the API with your API Key (get one for free at emailvalidation.io):

$emailvalidation = new \Emailvalidation\EmailvalidationClient('YOUR-API-KEY');

Afterwards you can use the endpoints of the API like this:

echo $emailvalidation->status();
var_dump($emailvalidation->validate('john@doe.com', [
    'catch_all' => 1
]));

Learn more about endpoints, parameters and response data structure in the docs.

License

The MIT License (MIT). Please see License File for more information.