PHPackages                             toddy15/spamdetect - 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. toddy15/spamdetect

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

toddy15/spamdetect
==================

Spam detection for Laravel, using a Naive Bayes implementation

00PHP

Since Apr 26Pushed 2y ago1 watchersCompare

[ Source](https://github.com/toddy15/spamdetect)[ Packagist](https://packagist.org/packages/toddy15/spamdetect)[ RSS](/packages/toddy15-spamdetect/feed)WikiDiscussions main Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Spam detection for Laravel
==========================

[](#spam-detection-for-laravel)

[![GitHub Tests Action Status](https://camo.githubusercontent.com/23de00e72cae946d0df05403e53a5b92fe659348ad0d637f8b0dea37c42cb933/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f746f64647931352f7370616d6465746563742f746573742e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473)](https://github.com/toddy15/spamdetect/actions?query=workflow%3Atest+branch%3Amain)[![Code Climate Coverage](https://camo.githubusercontent.com/ddf6121f0792338bd65ec462248da5bcce20ddc3e54d9ff6c0e67ecf304c29cd/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f636f7665726167652d6c65747465722f746f64647931352f7370616d646574656374)](https://codeclimate.com/github/toddy15/spamdetect)[![Code Climate Maintainability](https://camo.githubusercontent.com/0e76277aa0254a64e2c1a5fb7e3aed5e650d615b66845cdc6ce13d350f4d53f0/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6d61696e7461696e6162696c6974792f746f64647931352f7370616d646574656374)](https://codeclimate.com/github/toddy15/spamdetect)[![GitHub PHPStan Action Status](https://camo.githubusercontent.com/824e8c278e724367aa7c21a4b0e5649c801cf37989ee4fce81b68af62f5d1270/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f746f64647931352f7370616d6465746563742f616e616c797369732e796d6c3f6272616e63683d6d61696e266c6162656c3d5048505374616e2532306c6576656c25323039)](https://github.com/toddy15/spamdetect/actions?query=workflow%3Aanalysis+branch%3Amain)[![License MIT](https://camo.githubusercontent.com/64299eb1e3eff7ebaf2b81699fc92e6a7aa8dd934f2a0db9ee888f5ceb660257/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f746f64647931352f7370616d6465746563743f636f6c6f723d627269676874677265656e)](https://github.com/toddy15/spamdetect/LICENSE.md)

This package provides a naive bayes classifier for Laravel. This enables you to do statistical spam detection, for example in a guestbook or contact forms.

The package currently supports Laravel 11, 10, and 9.

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

[](#installation)

You can install the package via composer:

```
composer require toddy15/spamdetect
```

Testing
-------

[](#testing)

```
composer test
```

Author
------

[](#author)

- [Dr. Tobias Quathamer](https://github.com/toddy15)

###  Health Score

12

—

LowBetter than 0% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

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://www.gravatar.com/avatar/541421b7f88676c2998d78c2cfdf605972754783120f7e1b2007344201aaed12?d=identicon)[toddy](/maintainers/toddy)

---

Top Contributors

[![toddy15](https://avatars.githubusercontent.com/u/12176273?v=4)](https://github.com/toddy15 "toddy15 (106 commits)")

### Embed Badge

![Health badge](/badges/toddy15-spamdetect/health.svg)

```
[![Health](https://phpackages.com/badges/toddy15-spamdetect/health.svg)](https://phpackages.com/packages/toddy15-spamdetect)
```

###  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)
