PHP code example of mika56 / spfcheck-dns-direct
1. Go to this page and download the library: Download mika56/spfcheck-dns-direct library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mika56 / spfcheck-dns-direct example snippets
use Mika56\SPFCheck\SPFCheck;
use Mika56\SPFCheckDNSDirect\DNSRecordGetterDirect;
('127.0.0.1', 'test.com'));
public function __construct(
string $nameserver = '8.8.8.8',
int $port = 53,
int $timeout = 30,
bool $udp = true,
bool $tcpFallback = true
)