PHPackages                             romanzipp/laravel-mailcheck - 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. romanzipp/laravel-mailcheck

ActiveLibrary

romanzipp/laravel-mailcheck
===========================

A Laravel Wrapper for the MailCheck.ai disposable email API

2.0.2(2y ago)55.4k↓45%1MITPHPPHP ^8.1

Since Sep 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/romanzipp/Laravel-MailCheck)[ Packagist](https://packagist.org/packages/romanzipp/laravel-mailcheck)[ GitHub Sponsors](https://github.com/romanzipp)[ RSS](/packages/romanzipp-laravel-mailcheck/feed)WikiDiscussions master Synced 1mo ago

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

Laravel MailCheck.ai
====================

[](#laravel-mailcheckai)

[![Latest Stable Version](https://camo.githubusercontent.com/aba5ec79f07c1e1a55732f008c7172a3e017a93bdc772e275f0ee18bb2e35bd0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726f6d616e7a6970702f6c61726176656c2d6d61696c636865636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/romanzipp/laravel-mailcheck)[![Total Downloads](https://camo.githubusercontent.com/be02aae46017f0bdd0bb735210a077c22cff7a900df144a82155d34ae8edd25f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726f6d616e7a6970702f6c61726176656c2d6d61696c636865636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/romanzipp/laravel-mailcheck)[![License](https://camo.githubusercontent.com/db171bb8b5fdf19721ff6f7b7124598777d01f143a68f6038bdb000b7920503b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f726f6d616e7a6970702f6c61726176656c2d6d61696c636865636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/romanzipp/laravel-mailcheck)[![GitHub Build Status](https://camo.githubusercontent.com/da8cacfbc44b5afc2ece504ef4329bfd455f7f7a654409ea800bf9b9fceca5fe/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f726f6d616e7a6970702f4c61726176656c2d4d61696c436865636b2f74657374732e796d6c3f6c6162656c3d7465737473266272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://github.com/romanzipp/Laravel-MailCheck/actions)

A Laravel Wrapper for the [MailCheck.ai](https://www.mailcheck.ai) disposable email API made by [@tompec](https://github.com/tompec).

✨ Migrating from Validator.Pizza
--------------------------------

[](#-migrating-from-validatorpizza)

This package was previously called "Validator.Pizza". See the following guide if you want to migrate your previous installation.

Migration Guide### **Package name**

[](#package-name)

```
composer remove romanzipp/laravel-validator-pizza
composer require romanzipp/laravel-mailcheck
```

### **Config file**

[](#config-file)

Update the configuration file name.

```
- config/mailcheck.php
+ config/mailcheck.php
```

### **Code references**

[](#code-references)

```
- romanzipp\ValidatorPizza\
+ romanzipp\MailCheck\
```

### **Rule**

[](#rule)

```
- 'email' => 'required|email|validator_pizza',
+ 'email' => 'required|email|disposable',
```

### Table name

[](#table-name)

The default new **table name** will be `mailcheck_checks`. If you want to keep the previous `validator_pizza` table name change the entry in your config file.

```
- validator_pizza
+ mailcheck_checks
```

Features
--------

[](#features)

- Query the [MailCheck.ai](https://www.mailcheck.ai) API for disposable Emails &amp; Domains
- Cache responses
- Store requested domains in database

Installation
------------

[](#installation)

```
composer require romanzipp/laravel-mailcheck

```

Configuration
-------------

[](#configuration)

Copy configuration to your project:

```
php artisan vendor:publish --provider="romanzipp\MailCheck\Providers\MailCheckProvider"

```

Run the migration:

```
php artisan migrate

```

Usage
-----

[](#usage)

#### Controller Validation

[](#controller-validation)

```
namespace App\Http\Controllers;

use Illuminate\Http\Request;

class HomeController extends Controller
{
    public function handleEmail(Request $request)
    {
        $request->validate([
            'email' => 'required|email|disposable',
        ]);

        // ...
    }
}
```

#### Standalone

[](#standalone)

```
$checker = new \romanzipp\MailCheck\Checker;

// Validate domain
$validDomain = $checker->allowedDomain('ich.wtf');

// Validate mail address (uses domain check endpoint internally)
$validEmail = $checker->allowedEmail('ich@ich.wtf');
```

Advanced Usage
--------------

[](#advanced-usage)

You can make your disposable checks more hard or loose by configuring the edge case behavior. There are 3 possible outcomes to set:

- `romanzipp\MailCheck\Enums\ApiIssue::ALLOW` - allow the domain/mail
- `romanzipp\MailCheck\Enums\ApiIssue::DENY` - deny the chekechecked domain/mail
- `romanzipp\MailCheck\Enums\ApiIssue::EXCEPTION` - throw a [`DisposableMailException`](src/Exceptions/DisposableMailException)

### Rate Limit exceeded

[](#rate-limit-exceeded)

```
return [
    // ...
    'decision_rate_limit' => \romanzipp\MailCheck\Enums\ApiIssue::EXCEPTION,
];
```

### No MX DNS records present

[](#no-mx-dns-records-present)

There is no MX DNS entry present on the checked domain which means they can not receive any messages.

```
return [
    // ...
    'decision_no_mx' => \romanzipp\MailCheck\Enums\ApiIssue::EXCEPTION,
];
```

### Invalid request

[](#invalid-request)

```
return [
    // ...
    'decision_invalid' => \romanzipp\MailCheck\Enums\ApiIssue::EXCEPTION,
];
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.2% 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

966d ago

PHP version history (2 changes)2.0.0PHP ^8.0

2.0.1PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/309ea408cc915d1d37b370796df57a24ec31f0b65da69f69c650c8983f9c33a6?d=identicon)[romanzipp](/maintainers/romanzipp)

---

Top Contributors

[![romanzipp](https://avatars.githubusercontent.com/u/11266773?v=4)](https://github.com/romanzipp "romanzipp (68 commits)")[![tompec](https://avatars.githubusercontent.com/u/17140634?v=4)](https://github.com/tompec "tompec (3 commits)")[![imsus](https://avatars.githubusercontent.com/u/1058471?v=4)](https://github.com/imsus "imsus (1 commits)")[![teemak](https://avatars.githubusercontent.com/u/9258270?v=4)](https://github.com/teemak "teemak (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/romanzipp-laravel-mailcheck/health.svg)

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

###  Alternatives

[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[stechstudio/laravel-zipstream

A fast and simple streaming zip file downloader for Laravel.

4633.7M3](/packages/stechstudio-laravel-zipstream)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)[spatie/laravel-export

Create a static site bundle from a Laravel app

646127.9k5](/packages/spatie-laravel-export)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

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

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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