2017 © Pedro Peláez
 

library php-tempmailbuster

Control emails with black and white lists; make lists of domains using regular expressions and validate emails with them

image

ely/php-tempmailbuster

Control emails with black and white lists; make lists of domains using regular expressions and validate emails with them

  • Sunday, May 1, 2016
  • by ErickSkrauch
  • Repository
  • 3 Watchers
  • 1 Stars
  • 156 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 3 % Grown

The README.md

PHP Tempmail Buster

Latest Version on Packagist ![Software License][ico-license] Total Downloads, (*1)

A package to protect your application from users with temp emails. Uses Anti Tempmail Repo as a default blacklist source. Provides an extendable class for E-mail validation based on black- or whitelist., (*2)

Intallation

Install the latest version with, (*3)

$ composer require ely/php-tempmailbuster

Usage

Validation example using default loader:, (*4)

use Ely\TempMailBuster\Loader\AntiTempmailRepo;
use Ely\TempMailBuster\Storage;
use Ely\TempMailBuster\Validator;

$loader = new AntiTempmailRepo();
// A storage can be instantiated by feeding it with an array of patterns:
$storage = new Storage($loader->load());
// or created from loader instance
$storage = Storage::fromLoader($loader);

$validator = new Validator($storage);
$validator->validate('team@ely.by'); // = true
$validator->validate('hy42k@sendspamhere.com'); // = false

// Enable whitelisting mode
$validator->whitelistMode();
$validator->validate('team@ely.by'); // = false
$validator->validate('hy42k@sendspamhere.com'); // = true

Validator constructor accepts 2 arguments: primary and secondary storages. Primary storage is used for validation based on current mode (whitelist/blacklist). Secondary storage (if provided) allows you to add exceptions from primary storage rules., (*5)

For more usage examples please take a look on tests., (*6)

Change log

Please see CHANGELOG for more information what has changed recently., (*7)

Contributing

Please see CONTRIBUTING for details., (*8)

Credits

This package was designed and developed within the Ely.by project team. We also thank all the contributors for their help., (*9)

License

The MIT License (MIT). Please see License File for more information., (*10)

The Versions

01/05 2016

dev-master

9999999-dev https://github.com/elyby/anti-tempmail-repo

Control emails with black and white lists; make lists of domains using regular expressions and validate emails with them

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar ErickSkrauch
by Ely.by team

email validation

01/05 2016

1.0.2

1.0.2.0 https://github.com/elyby/anti-tempmail-repo

Control emails with black and white lists; make lists of domains using regular expressions and validate emails with them

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar ErickSkrauch
by Ely.by team

email validation

01/05 2016

1.0.1

1.0.1.0 https://github.com/elyby/anti-tempmail-repo

Control emails with black and white lists; make lists of domains using regular expressions and validate emails with them

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar ErickSkrauch
by Ely.by team

email validation

30/04 2016

1.0.0

1.0.0.0 https://github.com/elyby/anti-tempmail-repo

Control emails with black and white lists; make lists of domains using regular expressions and validate emails with them

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar ErickSkrauch
by Ely.by team

email validation