Open omarcinkonis opened 4 months ago
The domains are listed here:
You may read it from the line by line with file function and do your magick there.
The scope of the package is very clear and i understand @elliotjreed for his restrictions.
Hello! Apologies I completely missed your original issue @omarcinkonis.
I've pushed a new version / tag (5.0.0) with an additional methods:
<?php
require 'vendor/autoload.php';
use ElliotJReed\DisposableEmail\Email;
foreach ((new Email())->getDomainList() as $domain) {
echo $domain . PHP_EOL;
}
or
<?php
require 'vendor/autoload.php';
use ElliotJReed\DisposableEmail\DisposableEmail;
foreach (DisposableEmail::getDomainList() as $domain) {
echo $domain . PHP_EOL;
}
Thank you for replying @kaystrobach!
Hello, from my research, it seems that this package has the most comprehensive blacklist out of all options. I would really like to use it, but I ran into a couple of problems
getDomainsFromFile
method is private and I cannot use itEmail
class, but I cannot useprivate string $emailListPath;
in my own methodsSuggestions:
private
toprotected
so that the class can be extendedgetDomainsFromFile
public