Skip to content

ahmedofali/php-email-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Verify Email

Build Status Coverage Status

Is a php library for validating Emails and make sure the email is valid This library Inspired from hbattat/verifyEmail.

Installation:

composer require ahmedofali/php-email-validator

How to Use it:

require "vendor/autoload.php";  

use PHPVerifyEmail\PHPVerifyEmail;  

$email = 'dev.ahmed.abbass@gmail.com';
$verify_email = 'mohamedattya@gmail.com';
$port = 25;
$verification = PHPVerifyEmail::verify( $email, $verify_email, $port );  

---------------------
// print log
---------------------
print_r( $verification->getLog() );

---------------------
// print Result
---------------------
print_r( $verification->getResult() );

Test Cases:

From Terminal write:

composer test