2017 © Pedro Peláez
 

library email-verification

Email Verification

image

brainfab/email-verification

Email Verification

  • Friday, February 23, 2018
  • by brainfab
  • Repository
  • 1 Watchers
  • 1 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Email Verification

Installation

Require this package with composer:, (*1)

composer require brainfab/email-verification, (*2)

Usage example:

<?php

require_once 'vendor/autoload.php';

use Brainfab\EmailVerify\EmailVerify;
use Brainfab\EmailVerify\Provider\WhoisxmlapiProvider;

$apiKey = '';//your whoisxmlapi.com API key
$email = 'support@whoisxmlapi.com';//The email address to be verified.

$provider = new WhoisxmlapiProvider($apiKey);//create provider instance
$emailVerify = new EmailVerify($provider);

$result = $emailVerify->verify($email);

var_dump(
    $result->getEmail(),
    $result->getFormatCheck(),
    $result->getSmtpCheck(),
    $result->getDnsCheck(),
    $result->getFreeCheck(),
    $result->getDisposableCheck(),
    $result->getCatchAllCheck(),
    $result->getMxRecords()
);

List of available providers:

  • whoisxmlapi.com - Brainfab\EmailVerify\Provider\WhoisxmlapiProvider
  • hunter.io - Brainfab\EmailVerify\Provider\HunterProvider

The Versions

23/02 2018

dev-master

9999999-dev

Email Verification

  Sources   Download

MIT

The Requires

 

22/02 2018

1.0.0

1.0.0.0

Email Verification

  Sources   Download

MIT

The Requires