PHP code example of crisnao2 / disposable-email

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

    

crisnao2 / disposable-email example snippets




risnao2\DisposableEmail\Check;

$email = '[email protected]';
$isDisposable = Check::isDisposableEmail($email);

if ($isDisposable) {
    echo "This email is from a disposable email provider.";
} else {
    echo "This email is not from a known disposable email provider.";
}