PHP code example of ahmedofali / php-email-validator

1. Go to this page and download the library: Download ahmedofali/php-email-validator library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ahmedofali / php-email-validator example snippets




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() );

composer