NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #4333 most downloaded on Packagist
Parse, build and validate SPF (Sender Policy Framework) DNS records
Last release 1 years ago
23 Jun 2025
Ships unpredictably
gaps range from 8 days to 2.5 years
Most releases are documented
notes for 10 of 12 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
12 releases · first in 2020
One column per quarter.
Add Decoder::getTXTRecordFromDomain() by @BrandonXLF in #40
Full Changelog: 3.2.0...3.3.0
Add support for PHP up to 8.4 by @mlocati in #35 and in #38
OnlineSemanticValidator by @fyrts in #37Full Changelog: 3.1.2...3.2.0
Fix typo in getEnvironment method name
Support PHP 7.1 too
Added OnlineSemanticValidator to check for issues in real world - see the docs
OnlineSemanticValidator to check for issues in real world - see the docsfixed a bug when checking MX mechanisms (see #15 - thanks @kanarip !)
The semantic validation now also reports usages of "p" (validated domain) macro-letter (which should be avoided)
A ton of bug fixes have been addresses thanks to the usage of the OpenSPF Test Suite for RFC 7208
The most notable ones are:
getPTRRecords() method of the DNS Resolver interface changed its signature (you have to update your code if you are using a custom DNS resolver)Improved handling of internationalized domain names in the DNS resolver
You can now use this library to check the validity of an IP address/sender domain ( see README.md )
SPFLib\Exception\InvalidMacroStringException exception (which extends the SPFLib\Exception\InvalidTermException exception) in case of problemsSPFLib\Record now clones the contained terms toogetDomainSpec() 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 modifierFix decoding SPF record from a domain
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →