PHP code example of andimg93 / disposable-mail-detection

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

    

andimg93 / disposable-mail-detection example snippets




use AndreasMaximilianGerum\DisposableMailDetection\Verifier;

if (Verifier::isDisposableMail($emailToValidate)) {
    // It's a disposable mail address!
    // Throw exception or stop processing, nobody want fake mail providers.
}

// Else it is a proper mail address - Do what you want to do in this case.
bash
php -n updater.php