PHP Classes

Disposable Temporary Email Validator: Determine if an email address is temporary

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 60%Total: 509 All time: 5,771 This week: 140Up
Version License PHP version Categories
disposable-email 1.0MIT/X Consortium ...5Email, PHP 5, Validation
Description 

Author

This class can determine if an email is a temporary disposable address.

It takes an email address and parse it to extract the email address domain.

The class looks up a list of hundreds of domains know to be of services of temporary disposable email addresses.

Innovation Award
PHP Programming Innovation award nominee
August 2015
Number 4


Prize: One book of choice by Packt
Disposable email addresses are addresses created for use just once or a few times.

There are sites that can create disposable email addresses for people that need to register to access certain sites but they do not want to provide their real email addresses.

This causes problems to those sites because they will not be able to contact the users that register when they need to communicate important information.

This class can detect if an email address is of one of many known domains used for disposable email addresses, thus helping sites to reject registrations of users that use those disposable addresses.

Manuel Lemos
Picture of Suresh Kumar
Name: Suresh Kumar <contact>
Classes: 2 packages by
Country: India India
Age: ???
All time rank: 2768166 in India India
Week rank: 164 Up16 in India India Up
Innovation award
Innovation award
Nominee: 1x

Example

<?php

// Disposable Email Address Validator


require_once('DisposableEmail.class.php');

$obj = new DisposableEmails();

$result = $obj->validate("dsk@zomg.info");

if(
$result){
    echo
"Alert !! Disposable Email!";
}else{
    echo
"OK";
}


  Files folder image Files (2)  
File Role Description
Plain text file DisposableEmail.class.php Class Class source
Accessible without login Plain text file example.php Example Example script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:509
This week:0
All time:5,771
This week:140Up
 User Ratings  
 
 All time
Utility:81%StarStarStarStarStar
Consistency:100%StarStarStarStarStarStar
Documentation:-
Examples:100%StarStarStarStarStarStar
Tests:-
Videos:-
Overall:60%StarStarStarStar
Rank:1149