palpalani / laravel-spamassassin-score
Check the spam score of emails before sending them.
Fund package maintenance!
palpalani
Installs: 2 687
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 3
Forks: 1
Open Issues: 1
Requires
- php: ^7.4|^8.0
- guzzlehttp/guzzle: ^7.0
- illuminate/contracts: ^8.0|^9.0
- spatie/laravel-package-tools: ^1.4
Requires (Dev)
- orchestra/testbench: ^6.0|^7.0
- phpunit/phpunit: ^9.0
- vimeo/psalm: ^4.4
README
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.