PHPackages                             fidelo-software/laravel-spamshield - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. fidelo-software/laravel-spamshield

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

fidelo-software/laravel-spamshield
==================================

Simple spam detection

v2.2.1(1y ago)0357MITPHPPHP ^8.0

Since Jan 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/fidelo-software/laravel-spamshield)[ Packagist](https://packagist.org/packages/fidelo-software/laravel-spamshield)[ Docs](https://fidelo.com)[ RSS](/packages/fidelo-software-laravel-spamshield/feed)WikiDiscussions main Synced today

READMEChangelog (5)Dependencies (4)Versions (8)Used By (0)

Spam detection
==============

[](#spam-detection)

Installation
------------

[](#installation)

Install the package via composer

```
composer require fidelo-software/laravel-spamshield
```

Basic usage
-----------

[](#basic-usage)

Generate spamshield instance with strategies you want to use

```
$spamshield = new \FideloSoftware\Spam\SpamShield(
    [
        new \FideloSoftware\Spam\Strategies\HoneypotStrategy(3),
        new \FideloSoftware\Spam\Strategies\TimestampStrategy($store, 5),
        new \FideloSoftware\Spam\Strategies\LinkStrategy(0),
        new \FideloSoftware\Spam\Strategies\ValueBlacklistStrategy(['name' => ['John Doe']]),
    ],
    $store
    $logger // optional
);
```

Start all strategies onload processes when form is initializing

```
// Form initialization
$spamshield->onload($form, $request);
```

Include all html parts of defined strategies in your form rendering process

```
// Form rendering
echo $spamshield->html($form);
```

Execute all strategies on form submit to check for spam

```
// Submit
try {
    $spamshield->detect($form, $request);
} catch(\FideloSoftware\Spam\Exceptions\BannedException $e) {
    ...
} catch(\FideloSoftware\Spam\Exceptions\SpamDetectionException $e) {
    ...
}
```

Check user request globally
---------------------------

[](#check-user-request-globally)

```
// Check if user is globally banned after to many attempts
\FideloSoftware\Spam\SpamShield::isBanned($store, $request);
```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance49

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~210 days

Recently: every ~235 days

Total

7

Last Release

369d ago

Major Versions

v1.0.0 → v2.0.02022-11-10

PHP version history (2 changes)v1.0.0PHP ^7.4|^8.0

v2.0.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/38d4634ecb82037de66b5607febac907ec43e9028749a3dab9dda0538bbb1925?d=identicon)[Fidelo Software GmbH](/maintainers/Fidelo%20Software%20GmbH)

---

Top Contributors

[![fidelo-developer](https://avatars.githubusercontent.com/u/6771032?v=4)](https://github.com/fidelo-developer "fidelo-developer (6 commits)")[![DrMerk](https://avatars.githubusercontent.com/u/121562885?v=4)](https://github.com/DrMerk "DrMerk (2 commits)")[![shbt-code](https://avatars.githubusercontent.com/u/71849729?v=4)](https://github.com/shbt-code "shbt-code (1 commits)")

---

Tags

spamSpamshield

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/fidelo-software-laravel-spamshield/health.svg)

```
[![Health](https://phpackages.com/badges/fidelo-software-laravel-spamshield/health.svg)](https://phpackages.com/packages/fidelo-software-laravel-spamshield)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[api-platform/laravel

API Platform support for Laravel

58171.5k14](/packages/api-platform-laravel)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
