Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.06 KB

UPGRADE.md

File metadata and controls

40 lines (27 loc) · 1.06 KB

UPGRADE FROM 1.x TO 2.0

PHP Version

Version 2.0 now requires a supported PHP version, that is PHP 7.4 and >= 8.0

Public methods of SPFCheck

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;

DNSRecordGetter moved to the Mika56\SPFCheck\DNS namespace

# 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());

DNSRecordGetterDirect moved to its own repository

The class has been moved to mika56/spfcheck-dns-direct. This removed the dependency on purplepixie/phpdns.