PHPackages                             tractorcow/silverstripe-akismet - 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. tractorcow/silverstripe-akismet

Abandoned → [silverstripe/akismet](/?search=silverstripe%2Fakismet)Silverstripe-module[Utility &amp; Helpers](/categories/utility)

tractorcow/silverstripe-akismet
===============================

Akismet antispam module for Silverstripe

3.1.0(11y ago)39.6k11BSD-3-ClausePHP

Since Feb 19Pushed 7y ago1 watchersCompare

[ Source](https://github.com/tractorcow/silverstripe-akismet)[ Packagist](https://packagist.org/packages/tractorcow/silverstripe-akismet)[ RSS](/packages/tractorcow-silverstripe-akismet/feed)WikiDiscussions 3.1 Synced 2w ago

READMEChangelog (1)Dependencies (2)Versions (4)Used By (0)

Akismet Silverstripe Module
===========================

[](#akismet-silverstripe-module)

Simple spam filter for Silverstripe using Akismet

Also, please [report any issues](https://github.com/tractorcow/silverstripe-akismet/issues)you may encounter, as it helps us all out!

Credits and Authors
-------------------

[](#credits-and-authors)

- Damian Mooyman -
- Attribution to Tijs Verkoyen for his Akismet API wrapper -

Requirements
------------

[](#requirements)

- SilverStripe 3.1
- Silverstripe SpamProtection module -
- Tijs Verkoyen's Akismet API wrapper -
- PHP 5.3

Installation Instructions
-------------------------

[](#installation-instructions)

This module can be easily installed on any already-developed website

- If using composer installation can be done as below

```
composer require tractorcow/silverstripe-akismet 3.1.x-dev
```

- If not using composer you'll need to download the [akismet module](https://github.com/tractorcow/silverstripe-akismet/releases/tag/3.1.0), [spam protector](https://github.com/silverstripe/silverstripe-spamprotection/releases/tag/1.2.0), and [akismet](https://github.com/tijsverkoyen/Akismet/releases/tag/1.1.0)
- Configure your environment to set 'AkismetSpamProtector' as the protector class, and get an API key from [akismet.com](http://akismet.com/) and set in the site against one of the following ways.

config.yml:

```
---
Name: myspamprotection
---
FormSpamProtectionExtension:
  default_spam_protector: AkismetSpamProtector
AkismetSpamProtector:
  api_key: 5555dddd55d5d
```

\_config.php:

```
Config::inst()->update('FormSpamProtectionExtension', 'default_spam_protector', 'AkismetSpamProtector');
AkismetSpamProtector::set_api_key('5555dddd55d5d');
```

\_ss\_environment.php:

```
define('SS_AKISMET_API_KEY', '5555dddd55d5d');
// and set AkismetSpamProtector as your spam protector using one of the above methods

```

Testing
-------

[](#testing)

By default, spam protection is disabled for users with ADMIN priviliges. There is also an option to disable spam protection for all logged in users. In order to disable this for testing purposes, you can temporarily modify these options in your development environment as below:

```
if(!Director::isLive()) {
	Config::inst()->remove('AkismetSpamProtector', 'bypass_permission');
	Config::inst()->remove('AkismetSpamProtector', 'bypass_members');
}
```

In order to check that your form is blocking spam correctly, you can always set 'viagra-test-123' as the author and Akismet will always mark this as spam.

Comments
--------

[](#comments)

If you're using Comments module you can quickly set akismet to filter these out by adding the `CommentSpamProtection`extension to the `CommentingController`

config.yml

```
CommentingController:
  extensions:
    - CommentSpamProtection
```

\_config.php

```
CommentingController::add_extension('CommentSpamProtection');
```

Custom Form Usage
-----------------

[](#custom-form-usage)

To enable spam protection in your custom forms, call the enableSpamProtection method with your field names mapped to the akismet fields:

```
$form  = new Form($this, 'Form', $fields, $actions, $validator);
$form->enableSpamProtection(array(
  'mapping' => array(
    'Name' => 'authorName',
    'Email' => 'authorMail',
    'Comments' => 'body'
    )
  )
);

```

Important notes for those in the EU
-----------------------------------

[](#important-notes-for-those-in-the-eu)

Because of the way Akismet works (message, author, and other information sent to a third party) in some countries it's legally necessary to notify and gain the user's permission prior to verification.

To create a checkbox style authorisation prompt for this field set the following configuration option:

config.yml

```
AkismetSpamProtector:
  require_confirmation: true
```

\_config.php

```
Config::inst()->update('AkismetSpamProtector', 'require_confirmation', true);
```

License
-------

[](#license)

Revised BSD License

Copyright (c) 2013, Damian Mooyman All rights reserved.

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- The name of Damian Mooyman may not be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~149 days

Total

3

Last Release

4215d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f6a363b2d85dc3e82e73cc9e3a57fc15132920b166c5938ad63a54029b9f94b9?d=identicon)[tractorcow](/maintainers/tractorcow)

---

Top Contributors

[![jon-shape](https://avatars.githubusercontent.com/u/3586038?v=4)](https://github.com/jon-shape "jon-shape (4 commits)")[![tractorcow](https://avatars.githubusercontent.com/u/936064?v=4)](https://github.com/tractorcow "tractorcow (4 commits)")[![asecondwill](https://avatars.githubusercontent.com/u/156546?v=4)](https://github.com/asecondwill "asecondwill (1 commits)")

---

Tags

silverstripespamAkismet

### Embed Badge

![Health badge](/badges/tractorcow-silverstripe-akismet/health.svg)

```
[![Health](https://phpackages.com/badges/tractorcow-silverstripe-akismet/health.svg)](https://phpackages.com/packages/tractorcow-silverstripe-akismet)
```

###  Alternatives

[silverstripe/multi-domain

Allows multiple domains to access one CMS instance, mapping them to different sections of the hierarchy

141.6k](/packages/silverstripe-multi-domain)

PHPackages © 2026

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