PHPackages                             thoughtco/statamic-spam-check - 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. thoughtco/statamic-spam-check

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

thoughtco/statamic-spam-check
=============================

Checks form submission content against a spam classifier

00PHP

Since Apr 30Pushed 2y ago2 watchersCompare

[ Source](https://github.com/thoughtco/statamic-spam-check)[ Packagist](https://packagist.org/packages/thoughtco/statamic-spam-check)[ RSS](/packages/thoughtco-statamic-spam-check/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Statamic Spam Check
===================

[](#statamic-spam-check)

This addon checks any form submission content against the [Spam Check API](https://apilayer.com/marketplace/spamchecker-api#authentication).

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

[](#installation)

Install by composer: `composer require thoughtco/statamic-spam-check`

Add your API key in your .env under the key: `STATAMIC_SPAM_CHECK_API_KEY`

eg

```
STATAMIC_SPAM_CHECK_API_KEY="my-key"

```

Configuration
-------------

[](#configuration)

By default all Form Submissions will be checked for the presence of a `text` or `textarea` field, and if found a check will be run.

If you want to override this, publish the config:

`php artisan vendor:publish --tag=statamic-spam-check`

You then have the option to specify an array of specific forms to check, what field handle to check for and whether you want to fail silently.

Testing during development
--------------------------

[](#testing-during-development)

If you want to test responses during development you can use the `STATAMIC_SPAM_CHECK_TEST_MODE` env value.

Setting it to `disable` will prevent the addon from running.

Setting it to `fail` with throw a validation error, or fail silently, depending on what the `fail_silently` config value is set to.

###  Health Score

12

—

LowBetter than 0% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/51899?v=4)[Ryan Mitchell](/maintainers/ryanmitchell)[@ryanmitchell](https://github.com/ryanmitchell)

---

Top Contributors

[![ryanmitchell](https://avatars.githubusercontent.com/u/51899?v=4)](https://github.com/ryanmitchell "ryanmitchell (2 commits)")

### Embed Badge

![Health badge](/badges/thoughtco-statamic-spam-check/health.svg)

```
[![Health](https://phpackages.com/badges/thoughtco-statamic-spam-check/health.svg)](https://phpackages.com/packages/thoughtco-statamic-spam-check)
```

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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