eramitgupta/
laravel-disposable-email
g4t.io

Disposable Email Detection in Laravel

by Paul Redmond

The Disposable Email package for Laravel aims to detect and block email addresses with over 100K+ known domains.

README from eramitgupta/laravel-disposable-email Open on GitHub →

Laravel Disposable Email Address Validator

Packagist License Latest Stable Version Laravel Compatibility Total Downloads

Laravel Disposable email address validator is a Laravel package for detecting and blocking disposable email addresses during validation and runtime checks. It helps protect registrations, lead forms, and application workflows from temporary inbox abuse.

Already contains 1,24,220+ disposable email domains!


Installation

composer require erag/laravel-disposable-email

Publish the configuration:

php artisan erag:install-disposable-email
  • 🔥 110,880+ known disposable domains already included
  • 🔄 Daily auto-sync from self-maintained Disposable Email Blocklist repository
  • 🧠 Smart validation rule for form requests
  • 🛡️ Optional RFC, DNS, spoof, and filter validation modes
  • ⚙️ Runtime email checking via helper and facade
  • 🧩 Blade directive support for conditionals
  • 🌐 Auto-sync with remote domain lists
  • 📝 Add your own custom blacklist with ease
  • ✅ Allow trusted domains with a whitelist
  • 🧱 Block subdomains of disposable parent domains
  • 🔎 Detailed runtime results via Disposable::check()
  • 📊 Domain stats command via php artisan disposable:stats
  • 🧠 Optional caching for performance
  • ⚡️ Zero-configuration setup with publishable config
  • ✅ Compatible with Laravel 10, 11, 12, and 13

Official Documentation

Complete documentation for installation, configuration, validation, syncing, caching, and troubleshooting is available at:

https://erag.in/laravel-disposable-email/

🔄 Data Sources & Daily Updates

This package uses the official Disposable Email Blocklist, a self-developed and actively maintained repository.

Source

Automatic Updates

The blocklist repository is updated every day via GitHub Actions to:

  • 📥 Fetch the latest disposable email domains
  • 🧹 Normalize and clean domain names
  • 🔍 Remove duplicates and invalid entries
  • 📦 Generate the latest blocklist
  • 🚀 Publish changes automatically

This package always uses the latest version of the maintained blocklist.

⭐ Support

If you like this package, give it a GitHub star.

More from the ecosystem

marcreichel/
laya-php
g4t.io
3 53

LayaPHP: Self-Hosted Text Classification for PHP and Laravel

Classify text in PHP without an LLM bill: typed decisions in 100+ languages, self-hosted. Laravel-ready SDK for Laya, a Jev AI alternative.

ai classification decision-engine
marcreichel/laya-php via Laravel News
Josh-Dovey/
postcodes-laravel
g4t.io
5 9

Postcodes for Laravel: GB Postcode Lookup and Geography Data

Postcodes for Laravel adds typed GB postcode lookups, validation, geography data, distance searches, and test fakes through the GB Postcodes API.

Josh-Dovey/postcodes-laravel via Laravel News
RedberryProducts/
mailbox-for-laravel
g4t.io
4 115

Mailbox for Laravel: Preview and Test Rendered Email

Mailbox for Laravel captures outgoing mail in a local dashboard and lets you test rendered HTML, recipients, and attachments with fluent assertions.

RedberryProducts/mailbox-for-laravel via Laravel News