You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version 2.0 now requires a supported PHP version, that is PHP 7.4 and >= 8.0
6
+
7
+
## Public methods of `SPFCheck`
8
+
9
+
The available methods of `SPFCheck` has changed.
10
+
11
+
```php
12
+
# removed
13
+
public function isIPAllowed($ipAddress, $domain);
14
+
# replaced by
15
+
public function getIPStringResult(string $ipAddress, string $domain): string;
16
+
17
+
# added
18
+
public function getDomainSPFRecords(string $domainName): array;
19
+
public function getResult(Query $query): Result;
20
+
```
21
+
22
+
## `DNSRecordGetter` moved to the `Mika56\SPFCheck\DNS` namespace
23
+
24
+
```php
25
+
# before
26
+
use Mika56\SPFCheck\DNSRecordGetter;
27
+
use Mika56\SPFCheck\SPFCheck;
28
+
29
+
$checker = new SPFCheck(new DNSRecordGetter());
30
+
31
+
# after
32
+
use Mika56\SPFCheck\DNS\DNSRecordGetter;
33
+
use Mika56\SPFCheck\SPFCheck;
34
+
35
+
$checker = new SPFCheck(new DNSRecordGetter());
36
+
```
37
+
38
+
## `DNSRecordGetterDirect` moved to its own repository
39
+
40
+
The class has been moved to [mika56/spfcheck-dns-direct](https://github.com/Mika56/PHP-SPF-Check-DNS-Direct). This removed the dependency on `purplepixie/phpdns`.
0 commit comments