PHPackages                             diegomagikal/laravel-tempmail - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. diegomagikal/laravel-tempmail

ActiveLibrary[Testing &amp; Quality](/categories/testing)

diegomagikal/laravel-tempmail
=============================

Validator to block emails from temp mail services

v1.0.2(7y ago)4132MITPHPPHP ~5.6|~7.0

Since Oct 17Pushed 7y ago1 watchersCompare

[ Source](https://github.com/diegomagikal/laravel-tempmail)[ Packagist](https://packagist.org/packages/diegomagikal/laravel-tempmail)[ Docs](https://github.com/diegomagikal/laravel-tempmail)[ RSS](/packages/diegomagikal-laravel-tempmail/feed)WikiDiscussions master Synced yesterday

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

laravel-tempmail
================

[](#laravel-tempmail)

#### Validator to block temp mails usage.

[](#validator-to-block-temp-mails-usage)

### Introduction

[](#introduction)

This package verify if the typed email use a domain from any temporary email services and denies it.

### Installation

[](#installation)

To get the latest version of this package, add the following line to your composer.json:

```
"diegomagikal/laravel-tempmail": "*"

```

### Usage

[](#usage)

Use the rule `tempmail` in email validation, like this:

```
/**
 * Get a validator.
 *
 * @param  array  $data
 * @return \Illuminate\Contracts\Validation\Validator
 */
protected function validator(array $data)
{
    return Validator::make($data, [
        'name' => 'required|string|max:255',
        'email' => 'required|email|max:255|unique:users|tempmail',
        'password' => 'required|min:6|checkpassword|confirmed',
    ]);
}
```

[![tempmail](https://user-images.githubusercontent.com/16082344/47108547-587b5980-d222-11e8-8c67-25144f20cf86.JPG)](https://user-images.githubusercontent.com/16082344/47108547-587b5980-d222-11e8-8c67-25144f20cf86.JPG)

### Custom message / translation

[](#custom-message--translation)

Add 'tempmail' key to resources/lang/{YOUR\_LANG}/validation.php with the desired message.

```
 	/*
    |--------------------------------------------------------------------------
    | Custom Validation Language Lines
    |--------------------------------------------------------------------------
    |
    | Here you may specify custom validation messages for attributes using the
    | convention "attribute.rule" to name the lines. This makes it quick to
    | specify a specific custom language line for a given attribute rule.
    |
    */

    'tempmail' => 'Este tipo de e-email não é aceito. Digite seu email real!',
```

[![tempmail-pt](https://user-images.githubusercontent.com/16082344/47112320-63d38280-d22c-11e8-8bd1-7b6e859335a3.JPG)](https://user-images.githubusercontent.com/16082344/47112320-63d38280-d22c-11e8-8bd1-7b6e859335a3.JPG)

### Blocked services (growing)

[](#blocked-services-growing)

All the domains of the following providers are blocked:

- temp-mail.org
- tempm.com
- getinboxes.com
- getnada.com

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

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~12 days

Total

3

Last Release

2739d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16082344?v=4)[Diego ](/maintainers/DiegoMagikal)[@diegomagikal](https://github.com/diegomagikal)

---

Top Contributors

[![diegomagikal](https://avatars.githubusercontent.com/u/16082344?v=4)](https://github.com/diegomagikal "diegomagikal (11 commits)")

---

Tags

securityfaketempmailDiegoMagikalfakemail

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/diegomagikal-laravel-tempmail/health.svg)

```
[![Health](https://phpackages.com/badges/diegomagikal-laravel-tempmail/health.svg)](https://phpackages.com/packages/diegomagikal-laravel-tempmail)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[fgribreau/mailchecker

Temporary (disposable/throwaway) email detection library. Covers 1987 fake email providers.

1.9k662.6k4](/packages/fgribreau-mailchecker)[timacdonald/log-fake

A drop in fake logger for testing with the Laravel framework.

4235.9M56](/packages/timacdonald-log-fake)[icecave/isolator

Dependency injection for global functions.

371.3M29](/packages/icecave-isolator)[beeyev/disposable-email-filter-php

Disposable (temporary/throwaway/fake) email detection library. Automatically updated every week.

70151.7k2](/packages/beeyev-disposable-email-filter-php)[timacdonald/callable-fake

A testing utility that allows you to fake and capture invokations of a callable / Closure

4519.5k3](/packages/timacdonald-callable-fake)

PHPackages © 2026

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