SpamScore is a simple API client to get an Email's SpamAssassin score and report from a provider. It began a fork of Riverline\SpamAssassin, but ended up as a rewrite.
Via Composer
$ composer require league/:package_nameCurrently, only the Postmark provider is implemented.
It uses Postmark's free Spamcheck webservice.
<?php
use SpamScore;
$provider = SpamScore::create('Postmark');
$results = $provider->score($email);
echo $results->getScore();
// Optionally get the full report
echo $results->getReport();Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.