Download the PHP package palpalani/laravel-spamassassin-score without Composer
On this page you can find all versions of the php package palpalani/laravel-spamassassin-score. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download palpalani/laravel-spamassassin-score
More information about palpalani/laravel-spamassassin-score
Files in palpalani/laravel-spamassassin-score
Package laravel-spamassassin-score
Short Description Check the spam score of emails before sending them.
License MIT
Homepage https://github.com/palpalani/laravel-spamassassin-score
Informations about the package laravel-spamassassin-score
Laravel SpamAssassin Score
A Laravel package to check the spam score of email contents before sending them using the SpamAssassin filter API.
Features
- ✅ Check email spam scores using SpamAssassin API
- ✅ Simple and intuitive API
- ✅ Facade support for easy access
- ✅ Fully configurable
- ✅ Supports both "short" and "long" report formats
- ✅ Works with Laravel 11 and 12
- ✅ Well tested
- ✅ PHP 8.3+ support
Requirements
- PHP >= 8.3
- Laravel ^11.0 | ^12.0
Installation
You can install the package via Composer:
The package will automatically register its service provider and facade.
Configuration
You can publish the config file with:
This is the contents of the published config file:
Configuration Options
api: The SpamAssassin API endpoint URLoption: The report format - either"long"for a full report of processing rules, or"short"for a score request only
Usage
Using the Facade
Using Dependency Injection
Using Direct Instantiation
Example Response
When using the default "long" option, the response includes:
When using "short" option, the response is:
Testing
Run the tests with:
For test coverage:
Code Quality Tools
This package uses several code quality tools:
- PHPUnit - Testing framework
- Pest - Testing framework (alternative)
- Laravel Pint - Code style fixing (powered by PHP CS Fixer)
- PHPStan - Static analysis
- Larastan - Laravel-specific static analysis (PHPStan extension)
Run static analysis:
Run code formatting:
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details on our code of conduct, and the process for submitting pull requests.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- palPalani
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-spamassassin-score with dependencies
guzzlehttp/guzzle Version ^7.0
illuminate/contracts Version ^11.0|^12.0
spatie/laravel-package-tools Version ^1.4