Skip to content
MERAJ AHMAD SIDDIQUI edited this page Apr 7, 2017 · 7 revisions

# EmailValidator

This is an email verification library which verifies weather a given email id exist or not. The real verification if the person entering the email id is the owner of that email or not, you have to send mail. This library can be used to stop spanning and entering any random email id which may not exist.

Installation

composer require merajsiddiqui/email-validator

Or clone

git clone https://github.com/merajsiddiqui/email-validator.git

Usage

the library has been carefully developed and unit tested but you are advised to run a unit test before using it in big application and or dependency

include dirname(__DIR__) . "/vendor/autoload.php";

use Email\Validator;

$email_validator = new Validator();

$single_email = "msiddiqui.jmi@gmail.com";

$result = $email_validator->validate($single_email); //returns array

print($result['valid']);

Clone this wiki locally