PHPackages                             mika56/spfcheck-dns-direct - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mika56/spfcheck-dns-direct

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mika56/spfcheck-dns-direct
==========================

Provide a DNSRecordGetterInterface for using custom DNS servers for mika56/spfcheck

2.0.2(2y ago)066.6k↑38.3%1[1 issues](https://github.com/Mika56/PHP-SPF-Check-DNS-Direct/issues)[1 PRs](https://github.com/Mika56/PHP-SPF-Check-DNS-Direct/pulls)MITPHPPHP &gt;=7.4

Since Aug 28Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/Mika56/PHP-SPF-Check-DNS-Direct)[ Packagist](https://packagist.org/packages/mika56/spfcheck-dns-direct)[ RSS](/packages/mika56-spfcheck-dns-direct/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (5)Used By (0)

PHP-SPF-Check-DNS-Direct
========================

[](#php-spf-check-dns-direct)

Provides a `DNSRecordGetterInterface` to allow you to use custom DNS servers with [mika56/spfcheck](https://github.com/Mika56/PHP-SPF-Check).

It uses [purplepixie/phpdns](https://github.com/purplepixie/phpdns) to get the DNS records.

All the code was initially written by [@btafoya](https://github.com/btafoya) and extracted from the main repository to this one.

Installation
------------

[](#installation)

Ensure you have `mika56/spfcheck` installed, then require `mika56/spfcheck-dns-direct`:

```
composer require "mika56/spfcheck-dns-direct:^2.0"
```

Usage
-----

[](#usage)

Instantiate a new `Mika56\SPFCheckDNSDirect\DNSRecordGetterDirect` object and pass it to your `Mika56\SPFCheck\SPFCheck` object:

```
