PHPackages                             ely/php-tempmailbuster - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. ely/php-tempmailbuster

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

ely/php-tempmailbuster
======================

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

1.0.2(10y ago)2168MITPHPPHP ~5.4 | ~7.0

Since Apr 30Pushed 10y ago3 watchersCompare

[ Source](https://github.com/elyby/php-tempmailbuster)[ Packagist](https://packagist.org/packages/ely/php-tempmailbuster)[ Docs](https://github.com/elyby/anti-tempmail-repo)[ RSS](/packages/ely-php-tempmailbuster/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

PHP Tempmail Buster
===================

[](#php-tempmail-buster)

[![Latest Version on Packagist](https://camo.githubusercontent.com/1ce75504663b1aa511f76b7e67c913bbe242f640303a53559d9dd3a236e1af2e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656c792f7068702d74656d706d61696c6275737465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ely/php-tempmailbuster)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/e5da300e5bf8b6caac43e63c846a8f2ffb739f6396cf2818e3040f4d3881942d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656c792f7068702d74656d706d61696c6275737465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ely/php-tempmailbuster)

A package to protect your application from users with temp emails. Uses [Anti Tempmail Repo](https://github.com/elyby/anti-tempmail-repo) as a default blacklist source. Provides an extendable class for E-mail validation based on black- or whitelist.

Intallation
-----------

[](#intallation)

Install the latest version with

```
$ composer require ely/php-tempmailbuster
```

Usage
-----

[](#usage)

Validation example using default loader:

```
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.

For more usage examples please take a look on [tests](tests/ValidatorTest.php).

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

This package was designed and developed within the [Ely.by](http://ely.by) project team. We also thank all the [contributors](link-contributors) for their help.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 95.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

3666d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ab581fb1f2be61c3492ba1913ed418abe3cf64439589aeb7d6c68f854ad39e6e?d=identicon)[ErickSkrauch](/maintainers/ErickSkrauch)

---

Top Contributors

[![erickskrauch](https://avatars.githubusercontent.com/u/4787256?v=4)](https://github.com/erickskrauch "erickskrauch (23 commits)")[![SleepWalker](https://avatars.githubusercontent.com/u/2536916?v=4)](https://github.com/SleepWalker "SleepWalker (1 commits)")

---

Tags

validationemail

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ely-php-tempmailbuster/health.svg)

```
[![Health](https://phpackages.com/badges/ely-php-tempmailbuster/health.svg)](https://phpackages.com/packages/ely-php-tempmailbuster)
```

###  Alternatives

[egulias/email-validator

A library for validating emails against several RFCs

11.6k691.3M307](/packages/egulias-email-validator)[dominicsayers/isemail

Checks an email address against the following RFCs: 3696, 1123, 4291, 5321, 5322

308134.4k3](/packages/dominicsayers-isemail)[arubacao/tld-checker

Top Level Domain (TLD) validation library for PHP

721.6M2](/packages/arubacao-tld-checker)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[kickbox/kickbox

Official kickbox API library client for PHP

591.0M4](/packages/kickbox-kickbox)[neverbounce/neverbounce-php

This package provides convenient methods to integrate the NeverBounce API into your project.

241.1M3](/packages/neverbounce-neverbounce-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
