![]()
Laravel devs! If you’ve had to deal with users with disposable email within your application, you will agree with me that it is no joke.
Long story short, I wrote a package to ease your stress and it is one to keep handy. It provides a library of disposable domains and adds a validator to Laravel apps to check that a given email address isn’t coming from a disposable email service such as Mailinator, Guerillamail, Fastmail considering all their possible wildcards.
https://github.com/veeqtoh/laravel-active-email (opens in a new tab)
Key Features
Disposable Email Detection:
The package (opens in a new tab) validates email addresses to ensure they are not from known disposable email providers. It utilizes a comprehensive list of blacklisted domains, ensuring thorough validation.
Custom Validation Rule:
The package (opens in a new tab) introduces a notblacklisted validation rule for easy integration into existing Laravel validation workflows, allowing developers to easily apply the rule within request validations or custom form validations.
Configurable Options:
The package (opens in a new tab) delivers Blacklist, Greylist and Whitelist configurations which are mergeable with custom configurations, offering flexibility to extend or override default lists.
It also provides a strict mode option to enforce stricter validation by combining blacklist and greylist domains.
Service Provider and Facade:
The package (opens in a new tab) includes a service provider to seamlessly register the package with Laravel. It also provides a facade for easier access and usage within the application.
Composer Integration:
The package (opens in a new tab) supports Laravel versions 10.x and 11.x and includes necessary dependencies and autoload configurations for smooth package integration.
Testing Support:
Integrated with Pest and PHPUnit for comprehensive testing support.
Example test cases provided to validate the functionality of the package.
More information in the README (opens in a new tab) file.
https://github.com/veeqtoh/laravel-active-email (opens in a new tab)