https://github.com/robertlemke/robertlemke.akismet
Flow package which provides convenient access to the Akismet REST service
https://github.com/robertlemke/robertlemke.akismet
Last synced: about 1 year ago
JSON representation
Flow package which provides convenient access to the Akismet REST service
- Host: GitHub
- URL: https://github.com/robertlemke/robertlemke.akismet
- Owner: robertlemke
- License: mit
- Created: 2012-04-23T07:58:04.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2023-11-01T09:02:52.000Z (over 2 years ago)
- Last Synced: 2025-03-29T16:22:35.662Z (about 1 year ago)
- Language: PHP
- Homepage:
- Size: 43 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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);