Checks the spam score of email contents using spamassassin database.
You can install the package via composer:
composer require palpalani/laravel-spamassassin-score
You can publish the config file with:
php artisan vendor:publish --provider="palPalani\SpamassassinScore\SpamassassinScoreServiceProvider" --tag="laravel-spamassassin-score-config"
This is the contents of the published config file:
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!');
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.