-
Notifications
You must be signed in to change notification settings - Fork 0
Home
# 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.
composer require merajsiddiqui/email-validator
Or clone
git clone https://github.com/merajsiddiqui/email-validator.git
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']);