Skip to content

palpalani/laravel-spamassassin-score

Repository files navigation

Spamassassin spam score of emails.

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.

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages