PHP code example of elliotjreed / disposable-emails-filter
1. Go to this page and download the library: Download elliotjreed/disposable-emails-filter 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/ */
elliotjreed / disposable-emails-filter example snippets
lliotJReed\DisposableEmail\Email;
if ((new Email())->isDisposable('[email protected]')) {
echo 'This is a disposable / temporary email address';
}
lliotJReed\DisposableEmail\DisposableEmail;
if (DisposableEmail::isDisposable('[email protected]')) {
echo 'This is a disposable / temporary email address';
}
lliotJReed\DisposableEmail\Email;
$email = 'not-a-real-email-address#example.net';
if (filter_var($email, FILTER_VALIDATE_EMAIL)) {
if ((new Email())->isDisposable($email)) {
echo 'This is a disposable / temporary email address';
}
} else {
echo 'This is not a valid email address';
}
lliotJReed\DisposableEmail\Email;
new Email('/path/to/custom/list.txt');
bash
php composer.phar install
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.