PHP code example of shtorm / email-verificator

1. Go to this page and download the library: Download shtorm/email-verificator 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/ */

    

shtorm / email-verificator example snippets



$emails = [
    '[email protected]',
    'test@testcom',
    'tes2test.com',
    '[email protected]'
];

$results = (new \Shtorm\EmailVerificator\EmailVerificationService())->verification($emails);
foreach ($results as $result) {
    echo "Проверка {$result->emil} - " . ($result->is_verified ? 'Oк' : 'Ошибка') . ", Описание: {$result->message}\n";