2017 © Pedro Peláez
 

library disposable-email

Simple lib to verify is present mail come from disposable or temporary email address domain.

image

pcf/disposable-email

Simple lib to verify is present mail come from disposable or temporary email address domain.

  • Friday, June 15, 2018
  • by Pradzikowski
  • Repository
  • 4 Watchers
  • 4 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Disposable email domains filter

GitHub version SensioLabsInsight, (*1)

Our domain repositories come from repository licensed by Public Domain License(CC0 1.0)., (*2)

Domain repository date: 09.11.2017, (*3)

This repository is contributed by MIT License but files blocklist.conf and trustlist.conf are contributed by Public Domain License(CC0 1.0)., (*4)

Basic Usage

<?php

require 'vendor/autoload.php';

use PCF\DisposableEmail\ListedVerifier;
use PCF\DisposableEmail\SimpleDomainCollection;
use PCF\DisposableEmail\Resource\AbstractResourceList;

$collection = new SimpleDomainCollection();
$collection->setBlockedList(AbstractResourceList::getList('block'));
$collection->setTrustedList(AbstractResourceList::getList('trust'));
$collection->setKnownList([
    //Add domains that you know, if you want
]);

$verifier = new ListedVerifier($collection);

$mail = 'paw.radzikowski@gmail.com';
$domain = trim(strstr($mail, '@'), '@');

$status = $verifier->verifyDomain($domain); //It should return ListedVerifier::DOMAIN_UNKNOWN

Versions

Version of this composer lib looks like 1.0.201707401 which contains Major version. Minor version. Year, day of the year and commit version. It should help with mail repository versioning., (*5)

The Versions

15/06 2018

dev-master

9999999-dev

Simple lib to verify is present mail come from disposable or temporary email address domain.

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

by Avatar bernard
by Paweł

14/06 2018

v1.1.0

1.1.0.0

Simple lib to verify is present mail come from disposable or temporary email address domain.

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

by Avatar bernard
by Paweł

29/11 2017

v1.0.5

1.0.5.0

Simple lib to verify is present mail come from disposable or temporary email address domain.

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

by Avatar bernard
by Paweł

08/04 2017

v1.0.4

1.0.4.0

Simple lib to verify is present mail come from disposable or temporary email address domain.

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

by Avatar bernard
by Paweł

07/04 2017

1.0.3

1.0.3.0

Simple lib to verify is present mail come from disposable or temporary email address domain.

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

by Avatar bernard
by Paweł

27/03 2017

v1.0.2

1.0.2.0

Simple lib to verify is present mail come from disposable or temporary email address domain.

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

by Avatar bernard
by Paweł