New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

breadthe/laravel-silent-spam-filter

Silently filter spam messages based on a custom keyword/keyphrase blacklist.
2,619 9

Larablocks Analysis

breadthe/laravel-silent-spam-filter works with Laravel 6, 7 and 8 (latest release 1.2.0, Feb 24, 2021), all past end of life (the last on Jan 24, 2023): no more fixes, even for security.

Laravel 5 in earlier releases.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 6, 7 and 8, past end of life since Jan 24, 2023
  • No release in the last 12 months (last: Feb 24, 2021)
  • 55 downloads a month (needs 10,000)
  • 9 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Feb 24, 2021.
  • No releases in the last 12 months.
  • First released: May 20, 2019.
  • Monthly downloads: 55.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 29, 2026.

Install
composer require breadthe/laravel-silent-spam-filter
Latest Version:1.2.0
PHP:^7.2.5|^8.0
Laravel:6 · 7 · 8
Older releases:5
License:MIT
Last Updated:Feb 24, 2021
Links: GitHub  ·  Packagist
Maintainer: breadthe

Laravel Silent Spam Filter

license packagist build code quality downloads

A simple way to filter a message for spam in a Laravel project, based on your own custom keyword and phrase blacklist. It is useful in silently ignoring messages submitted via contact forms, without alerting the spammer that the message went through.

By default it comes with virtually zero configuration, which means you'll have to add your own keywords and phrases to the blacklist.

Installation

You can install the package via composer:

composer require breadthe/laravel-silent-spam-filter

Optionally publish the configuration file config/silentspam.php:

php artisan vendor:publish --provider="Breadthe\SilentSpam\SilentSpamServiceProvider" --tag="silentspam-config"

Configuration

If you published the configuration file config/silentspam.php you can add additional entries to the blacklist key, or overwrite the sample entries.

At runtime you can use SilentSpam::blacklist([]) to add additional keywords, that will get merged with the list in the configuration. This can be useful if you want to keep a global blacklist in the config, but also add custom lists depending on the context when checking for spam.

Usage

$spamMessage = 'This message contains spam';
$normalMessage = 'This is a normal message';

SilentSpam::blacklist([
    'contains spam',
]);

SilentSpam::isSpam($spamMessage); // true
SilentSpam::notSpam($spamMessage); // false

SilentSpam::isSpam($spamMessage); // false
SilentSpam::notSpam($spamMessage); // true

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email omigoshdev@protonmail.com instead of using the issue tracker.

Credits

License

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

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.

Related Packages

breadthe/php-contrast

Color and contrast tools

3,701 7
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338
laravel/tinker

Powerful REPL for the Laravel framework.

546,909,908 7,440
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

465,816,364 607

Version History

Version Released PHP Laravel License
1.2.0 ^7.2.5|^8.0 ^6.0|^7.0|^8.0 MIT
1.1.0 ^7.1|^7.2|^7.3|^7.4 ~5.8.0|^6.0|^7.0|^8.0 MIT
1.0.3 ^7.1|^7.2|^7.3|^7.4 ~5.8.0|^6.0|^7.0 MIT
1.0.2 ^7.1|^7.2 ~5.8.0|^6.0 MIT
1.0.1 ^7.1 5.8.* MIT
Pre-releases (1)
Version Released PHP Laravel License
1.0.3-alpha ^7.1|^7.2|^7.3|^7.4 ~5.8.0|^6.0|^7.0 MIT