erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

Maintainers

Package info

github.com/eramitgupta/laravel-disposable-email

pkg:composer/erag/laravel-disposable-email

Transparency log

Fund package maintenance!

eramitgupta

Statistics

Installs: 179 607

Dependents: 0

Suggesters: 0

Stars: 255

Open Issues: 1

v5.1.2 2026-07-15 07:46 UTC

README

Packagist License Latest Stable Version Laravel Compatibility Total Downloads

Laravel Disposable Email Detection 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 110,880+ 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
  • โš™๏ธ 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.