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 = '[email protected]';
$verify_email = '[email protected]';
$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