PHPackages                             helgesverre/spamprotection - 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. [API Development](/categories/api)
4. /
5. helgesverre/spamprotection

ActiveLibrary[API Development](/categories/api)

helgesverre/spamprotection
==========================

A Spam Protection class for use in contact forms and comment fields, uses the StopForumSpam API.

1.0.1(10y ago)2429.9k↓29.2%9[3 PRs](https://github.com/HelgeSverre/SpamProtection/pulls)MITPHP

Since Oct 23Pushed 6y ago6 watchersCompare

[ Source](https://github.com/HelgeSverre/SpamProtection)[ Packagist](https://packagist.org/packages/helgesverre/spamprotection)[ Docs](https://helgesverre.com/products/spamprotection)[ RSS](/packages/helgesverre-spamprotection/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)DependenciesVersions (3)Used By (0)

SpamProtection
==============

[](#spamprotection)

[![Latest Version on Packagist](https://camo.githubusercontent.com/87245d766141da2a4883bcc89b984633c16316d6a4a67f0a57bf1a399f7ad599/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f68656c67657376657272652f7370616d70726f74656374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/helgesverre/spamprotection)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/07cca8685e45429264cb279cbaea43c2fb6fdfe1e4eefaebe42b8fbbe069e137/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f68656c67657376657272652f7370616d70726f74656374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/helgesverre/spamprotection)

PHP Spam Protection Class for use in Contact forms and Comment Fields

API Keys to use with this class can be obtained here:

Having an API Key is only necessary if you are going to use the submitReport() function.

Install
-------

[](#install)

```
$ composer require helgesverre/spamprotection
```

Usage
-----

[](#usage)

Example.php

```
