Skip to content
PHP library to check disposable email address using IsTempMail API
PHP
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
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();
}
You can’t perform that action at this time.