PHP code example of palpalani / laravel-spamassassin-score

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

    

palpalani / laravel-spamassassin-score example snippets


return [
    'api' => 'https://spamcheck.postmarkapp.com/filter',

    // Default "long". Must either be "long" for a full report of processing rules, or "short" for a score request.
    'option' => 'long'
];

$score = new \palPalani\SpamassassinScore\SpamassassinScore();
echo $score->getScore('Hello, palPalani!');