robertlemke/akismet

Last activity on 4 April 2018
  • 5
  • 4
  • 2021
composer require robertlemke/akismet

Integration of Akismet, an intelligent comment spam detector, for Flow

2.0.0

Integration of Akismet, an intelligent comment spam detector, for Flow

Version
2.0.0
Type
neos-package
Release Date
Jan 23, 2017 11:16:58 a.m.
Source
git
Distribution
zip
Requires
Requires (dev)
None
Suggest
None
Provides
None
Conflicts
None
Replaces
None
MIT 40d9c5f526764ceacd75abc8131c9254b0fe4cf5

Akismet

Flow package which provides convenient access to the Akismet REST service.

Setup

In order to use the service you'll first need to sign up for a (usually) free account at http://akismet.com/

Next, just include this package into your application by adding it to the required package of your composer.json file.

Finally add your Akismet credentials to your Settings.yaml:

RobertLemke:
  Akismet:

    # Defines the host of the Akismet service. Does not have to be changed unless
    # Akismet changes its service entry point.
    serviceHost: 'rest.akismet.com'

    # The API key you have been provided by Akismet
    apiKey: ''

    # The frontpage URI pointing to your blog or the site using Akismet. Must be
    # a full URI, for example "http://robertlemke.com/blog".
    blogUri: ''

Usage

The Service class provides a simple API for checking if a comment is spam or submitting new spam or ham to the service:

$isSpam = $service->isCommentSpam($permaLink, $content, $type, $author, $authorEmailAddress, $authorUri);
The content of the readme is provided by Github
The same vendor provides 3 package(s).