PHPackages                             dann95/l5-disposable-emails-validation - 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. dann95/l5-disposable-emails-validation

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

dann95/l5-disposable-emails-validation
======================================

Validation of disposable e-mails for Laravel 5

2251PHP

Since Mar 31Pushed 9y ago1 watchersCompare

[ Source](https://github.com/dann95/l5-disposable-emails-validation)[ Packagist](https://packagist.org/packages/dann95/l5-disposable-emails-validation)[ RSS](/packages/dann95-l5-disposable-emails-validation/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel 5 Disposable E-mails Validation
=======================================

[](#laravel-5-disposable-e-mails-validation)

> This repo uses [ivolo/disposable-email-domains](https://github.com/ivolo/disposable-email-domains) to update the black list.

How to install?
---------------

[](#how-to-install)

```
composer require dann95/l5-disposable-emails-validation
```

How to use?
-----------

[](#how-to-use)

#### Add service provider in config/app.php

[](#add-service-provider-in-configappphp)

```
    [
        //...
        App\Providers\AppServiceProvider::class,
        App\Providers\AuthServiceProvider::class,
        // App\Providers\BroadcastServiceProvider::class,
        App\Providers\EventServiceProvider::class,
        App\Providers\RouteServiceProvider::class,
        Dann95\L5DisposableEmails\Providers\DisposableEmailsServiceProvider::class /* add it here */
        //...
    ],
```

#### Using inside Http/Requests

[](#using-inside-httprequests)

```
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'email' => ['required','email','real_email'],
        ];
    }

    /**
     * @return array
     */
    public function messages()
    {
        return [
            'email.real_email' => 'Sorry you are using temporary e-mail',
        ];
    }
```

#### Using inside Http/Controller

[](#using-inside-httpcontroller)

```
public function store(Request $request)
{
    $this->validate($request, [
        'email' => 'required|email|real_email',
    ]);
    // the email is valid
}
```

#### Using anywhere

[](#using-anywhere)

```
    $validator = Validator::make(request()->all(), [
        'email' => 'required|email|real_email',
    ]);

    if ($validator->fails()) {
        // it fails
    }
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

disposableemailfakelaraveltemporaryvalidationvalidator

### Embed Badge

![Health badge](/badges/dann95-l5-disposable-emails-validation/health.svg)

```
[![Health](https://phpackages.com/badges/dann95-l5-disposable-emails-validation/health.svg)](https://phpackages.com/packages/dann95-l5-disposable-emails-validation)
```

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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