PHP code example of mmediasoftwarelab / deliverability
1. Go to this page and download the library: Download mmediasoftwarelab/deliverability 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/ */
mmediasoftwarelab / deliverability example snippets
use MMedia\Deliverability\Deliverability;
use MMedia\Deliverability\Suite;
$suite = new Suite('example.com');
$suite->add(Deliverability::spf('example.com'));
$suite->add(Deliverability::dkim('example.com', 'google'));
$suite->add(Deliverability::dmarc('example.com'));
$suite->add(Deliverability::mx('example.com'));
$suite->add(Deliverability::ptr('example.com'));
$suite->add(Deliverability::rbl('example.com'));
foreach ($suite->getResults() as $result) {
echo $result->getName() . ': ' . $result->getStatus() . PHP_EOL;
}