Version 2.0 now requires a supported PHP version, that is PHP 7.4 and >= 8.0
The available methods of SPFCheck
has changed.
# removed
public function isIPAllowed($ipAddress, $domain);
# replaced by
public function getIPStringResult(string $ipAddress, string $domain): string;
# added
public function getDomainSPFRecords(string $domainName): array;
public function getResult(Query $query): Result;
# before
use Mika56\SPFCheck\DNSRecordGetter;
use Mika56\SPFCheck\SPFCheck;
$checker = new SPFCheck(new DNSRecordGetter());
# after
use Mika56\SPFCheck\DNS\DNSRecordGetter;
use Mika56\SPFCheck\SPFCheck;
$checker = new SPFCheck(new DNSRecordGetter());
The class has been moved to mika56/spfcheck-dns-direct. This removed the dependency on purplepixie/phpdns
.