palpalani/laravel-spamassassin-score

Check the spam score of emails before sending them.

0.2.7 2022-04-29 07:52 UTC

This package is auto-updated.

Last update: 2024-11-27 15:39:50 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Checks the spam score of email contents using spamassassin database.

Installation

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'
];

Usage

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

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.