Is a php library for validating Emails and make sure the email is valid This library Inspired from hbattat/verifyEmail.
composer require ahmedofali/php-email-validator
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() );
From Terminal write:
composer test