Released on v3.7.0 🔥
Added
- New external blacklist domain list integrated from [disposable_email.txt](https://raw.githubusercontent.com/eramitgupta/disposable-email/main/disposable_email.txt) to broaden disposable email detection.
Changed
- Refactored
getUnauthorizedProviders
method to replace Laravel Collection chains with native PHP loops, improving processing speed and reducing overhead. - Updated domain uniqueness handling with associative arrays for faster deduplication.
- Simplified merging of domain lists using
array_merge
andarray_flip
for better performance and readability. - Enhanced domain normalization by improving extraction logic for email-to-domain conversion.
- Switched file reading operations to native PHP functions (
glob
&file_get_contents
) for faster and more efficient file handling.
Performance
- Reduced single domain check time from 124.274ms to 93.274ms.
- Maintained stable bulk check performance (~3.727ms over 1000 iterations).
Upgrade Notes
- If you extend or override the
getUnauthorizedProviders
method, adjust your code to replace Collection usage with native PHP arrays. - Verify that blacklist file directory permissions are compatible with native PHP file functions.
- Review new blacklist domains to avoid unintended blocking.
Full Changelog: v3.6.0...v3.7.0