PHP code example of fullpipe / spamassassin

1. Go to this page and download the library: Download fullpipe/spamassassin 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/ */

    

fullpipe / spamassassin example snippets




use Riverline\SpamAssassin\PostmarkWebservice

$spamAssassin = new PostmarkWebservice($rawEmail, true);
echo $spamAssassin->getScore();
echo $spamAssassin->getReport();
var_dump($spamAssassin->getReportAsArray());