erag / laravel-disposable-email
A Laravel package to detect and block disposable email addresses.
Package info
github.com/eramitgupta/laravel-disposable-email
pkg:composer/erag/laravel-disposable-email
Fund package maintenance!
Requires
- php: >=8.1.0
- illuminate/console: ^10.0|^11.0|^12.0|^13.0
- illuminate/filesystem: ^10.0|^11.0|^12.0|^13.0
- illuminate/http: ^10.0|^11.0|^12.0|^13.0
- illuminate/support: ^10.0|^11.0|^12.0|^13.0
- illuminate/translation: ^10.0|^11.0|^12.0|^13.0
- illuminate/validation: ^10.0|^11.0|^12.0|^13.0
Requires (Dev)
- laravel/pint: ^1.13
- orchestra/testbench: ^8.39|9.17.0|^10.8|^11.0
- pestphp/pest: ^3.7|^4.0
- pestphp/pest-plugin-laravel: ^3.0|^4.1
README
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
- ๐ฆ Official Blocklist Repository
https://github.com/eramitgupta/disposable-email
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.