Releases: Mika56/PHP-SPF-Check
Releases · Mika56/PHP-SPF-Check
2.2.0
2.1.1
2.1.0
New features
- Expose new data on Result:
getRecord(): ?Record
: returns the evaluated record for the domaingetSteps(): array<array<0: Term, 1: ?bool>>
: returns every evaluatedTerm
. Second value of the array is whether theTerm
matched or notgetRequestcount(): int
,getRequestMXCount(): int
,getRequestPTRCount(): int
andgetVoidLookups(): int
: returns the number of DNS lookups, MX lookups, PTR lookups and void lookups that were made for this evaluation
- Allow using custom lookup limits. Added three new arguments to
SPFCheck
constructor:public function __construct(DNSRecordGetterInterface $DNSRecordGetter, int $maxRequests = 10, int $maxMXRequests = 10, int $maxPTRRequests = 10)
Bugfixes
Full Changelog: 2.0.1...2.1.0
Version 2
Version 2 is now out!
Work was done to simplify SPFCheck class and separating code responsibility.
A lot of work was also done to add macros support and providing a Result
object with more details on the check.
Please check UPGRADE.md for details on the BC breaks