Simple lib to get SpamAssassin score and report for an Email.
PHP
Latest commit 25ce2a5 Sep 16, 2015 @rcambien Merge pull request #1 from cedriclombardot/patch-1
Sometime $response['report'] is empty

README.md

README

Build Status SensioLabsInsight

What is Riverline\SpamAssassin

Riverline\SpamAssassin is a simple lib to get SpamAssassin score and report for an Email.

Requirements

  • PHP 5.3
  • Guzzle 3.*

Installation

Riverline\SpamAssassin is compatible with composer and any prs-0 autoloader

Usage

Currently, only one provider is available : PostmarkWebservice.

It use the Postmark free Spamcheck webservice available here : http://spamcheck.postmarkapp.com/doc

<?php

use Riverline\SpamAssassin\PostmarkWebservice

$spamAssassin = new PostmarkWebservice();
echo $spamAssassin->getScore($rawEmail);

// Optionally get the full report
echo $spamAssassin->getReport();