PHP library to check disposable email address using IsTempMail API
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
composer.json
example.php
istempmail.php

README.md

IsTempMail PHP

PHP library to check disposable email address using IsTempMail API

How to use

To get a free API token, register at IsTempMail and copy your API token there.

<?php
include('istempmail.php');

$isTempMail = new IsTempMail('YOUR_API_TOKEN');

try {
    if($isTempMail->isDea('spammer@mailinator.com')) {
        echo 'Disposable email address detected.';
    }
} catch (Exception $exception) {
    echo $exception->getMessage();
}