PHPackages                             johannebert/laravel-spam-protector - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. johannebert/laravel-spam-protector

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

johannebert/laravel-spam-protector
==================================

Laravel Spam Protector class to check ip, name, email for spam that uses the StopForumSpam Api https://www.stopforumspam.com/usage

v7.0.0(3y ago)1230.6k↓51.8%6[1 issues](https://github.com/johannebert/laravel-spam-protector/issues)[1 PRs](https://github.com/johannebert/laravel-spam-protector/pulls)2MITPHPPHP &gt;=7.2|^8.0CI failing

Since Dec 3Pushed 2y ago3 watchersCompare

[ Source](https://github.com/johannebert/laravel-spam-protector)[ Packagist](https://packagist.org/packages/johannebert/laravel-spam-protector)[ Docs](https://github.com/johannebert/laravel-spam-protector)[ RSS](/packages/johannebert-laravel-spam-protector/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (3)Versions (15)Used By (2)

Laravel Spam Protector
======================

[](#laravel-spam-protector)

[![Latest Version on Packagist](https://camo.githubusercontent.com/cc490519476d947f6debf6cbc3dd3d03a491dd4254898bbbcf177c975f34751a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a6f68616e6e65626572742f6c61726176656c2d7370616d2d70726f746563746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/johannebert/laravel-spam-protector)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/f0c8ca82ef7626cd0ea773b02f381c4b997d0db85992c3fe3fb044e7e2898df1/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6a6f68616e6e65626572742f6c61726176656c2d7370616d2d70726f746563746f722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/johannebert/laravel-spam-protector)[![Total Downloads](https://camo.githubusercontent.com/57fff51f2d629b1b540dbf9d6b2d959ef03efecbc1d78647beed905921a2adff/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a6f68616e6e65626572742f6c61726176656c2d7370616d2d70726f746563746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/johannebert/laravel-spam-protector)

Laravel Spam Protector class to check ip, name, email for spam that uses the StopForumSpam Api

Install
-------

[](#install)

Via Composer

```
$ composer require johannebert/laravel-spam-protector
```

> **Note**: If you are using Laravel 5.5, the next steps are unnecessary. Laravel Spam Protector supports Laravel [Package Discovery](https://laravel.com/docs/5.5/packages#package-discovery).

- After updating composer, add the ServiceProvider to the providers array in `config/app.php`

```
JohannEbert\LaravelSpamProtector\SpamProtectorServiceProvider::class
```

- and for aliases

```
'SpamProtector' => JohannEbert\LaravelSpamProtector\Facades\SpamProtector::class,
```

Usage
-----

[](#usage)

```
$spamProtector = new SpamProtector();

if($spamProtector->isSpamEmail('john@example.com'))
{
    // If given email was registered as a spam your code goes here
}
```

Usage Fasade
------------

[](#usage-fasade)

```
if(SpamProtector::isSpamEmail('john@example.com'))
{
    // If given email was registered as a spam your code goes here
}
```

Testing
-------

[](#testing)

```
$ composer test
```

or

```
$ phpunit
```

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [Johann Ebert](https://github.com/johannebert)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 73.5% 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 ~140 days

Recently: every ~211 days

Total

13

Last Release

1453d ago

Major Versions

2.1.1 → v3.0.02019-10-08

v3.0.0 → v4.0.02020-03-20

v4.0.0 → v5.0.02020-09-23

v5.0.0 → v6.0.02021-06-24

v6.1.0 → v7.0.02022-07-12

PHP version history (4 changes)1.0.0PHP ~5.6|~7.0

1.2.0PHP ~7.0

v3.0.0PHP ^7.2

v6.0.0PHP &gt;=7.2|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19428345?v=4)[Johann Ebert](/maintainers/johannebert)[@johannebert](https://github.com/johannebert)

---

Top Contributors

[![johannebert](https://avatars.githubusercontent.com/u/19428345?v=4)](https://github.com/johannebert "johannebert (25 commits)")[![approached](https://avatars.githubusercontent.com/u/3439330?v=4)](https://github.com/approached "approached (3 commits)")[![MadMikeyB](https://avatars.githubusercontent.com/u/831828?v=4)](https://github.com/MadMikeyB "MadMikeyB (2 commits)")[![p-andrey](https://avatars.githubusercontent.com/u/45175781?v=4)](https://github.com/p-andrey "p-andrey (2 commits)")[![nonoesp](https://avatars.githubusercontent.com/u/1243210?v=4)](https://github.com/nonoesp "nonoesp (1 commits)")[![ricardoboss](https://avatars.githubusercontent.com/u/6266356?v=4)](https://github.com/ricardoboss "ricardoboss (1 commits)")

---

Tags

laravelspamprotectionstopforumspamjohannebertlaravel-spam-protectorstop forum spam api

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/johannebert-laravel-spam-protector/health.svg)

```
[![Health](https://phpackages.com/badges/johannebert-laravel-spam-protector/health.svg)](https://phpackages.com/packages/johannebert-laravel-spam-protector)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel

3893.6M1](/packages/axlon-laravel-postal-code-validation)[laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2462.4M7](/packages/laravel-validation-rules-credit-card)[sandermuller/laravel-fluent-validation

Fluent validation rule builders for Laravel

20719.0k4](/packages/sandermuller-laravel-fluent-validation)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)

PHPackages © 2026

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