fullpipe/spamassassin

Library to request SpamAssassin report

Installs: 116

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 3

pkg:composer/fullpipe/spamassassin

1.0.1 2014-03-21 16:22 UTC

This package is auto-updated.

Last update: 2025-09-27 03:33:57 UTC


README

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

Add to your composer.json:

{
   "require": {
        ...
        "fullpipe/spamassassin": "dev-master"
        ...
    }
}

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($rawEmail, true);
echo $spamAssassin->getScore();
echo $spamAssassin->getReport();
var_dump($spamAssassin->getReportAsArray());