Skip to content

v2.0.0

Choose a tag to compare

@mlocati mlocati released this 15 Jul 08:14
· 32 commits to master since this release

New features

  • You can now use this library to check the validity of an IP address/sender domain (see README.md)
  • When checking for semantic issues, you can now filter for the minimum issue level

Bug fixes

  • The library now handles SPF records in a case-insensitive way (as per RFC 7208)

Breaking changes

  • New methods have been added to the DNS Resolver interface (you have to implement them if you are using a custom DNS resolver)
  • When parsing an SPF record, the library now also checks the syntax of the mechanism/modifier arguments, throwing a new SPFLib\Exception\InvalidMacroStringException exception (which extends the SPFLib\Exception\InvalidTermException exception) in case of problems
  • Cloning instances of SPFLib\Record now clones the contained terms too
  • The result of the getDomainSpec() method of the a/exists/include/mx/ptr mechanisms and the exp/redirect modifiers is now an instance of the new SPFLib\Macro\MacroString class instead of a string (to get their string representation simply use (string) $mechamism->getDomainSpec()); the same applies for the result of the getValue() method of the unknown modifier