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(10mo ago)0348MITPHPPHP ^8.0

Since Jan 12Pushed 10mo 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 1mo ago

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

37

—

LowBetter than 83% of packages

Maintenance54

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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

317d 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

[watson/active

Laravel helper for recognising the current route, controller and action

3253.6M14](/packages/watson-active)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[beyondcode/laravel-favicon

Create dynamic favicons based on your environment settings.

37345.5k](/packages/beyondcode-laravel-favicon)[glhd/conveyor-belt

14797.0k](/packages/glhd-conveyor-belt)[dragon-code/pretty-routes

Pretty Routes for Laravel

10058.7k4](/packages/dragon-code-pretty-routes)[erlandmuchasaj/laravel-gzip

Gzip your responses.

40129.3k2](/packages/erlandmuchasaj-laravel-gzip)

PHPackages © 2026

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