PHPackages                             romano83/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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. romano83/akismet

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

romano83/akismet
================

PSR-7 library to communicate with Akismet service to determine if a submitted comment to your website should be considered spam or not.

1.0(8y ago)815.8k—0%4MITPHPPHP &gt;=7.1

Since Dec 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Romano83/akismet)[ Packagist](https://packagist.org/packages/romano83/akismet)[ RSS](/packages/romano83-akismet/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

Akismet PHP 7 class
===================

[](#akismet-php-7-class)

[![Build Status](https://camo.githubusercontent.com/21a8956d2c567426f4847866dacc53418fdc4e1cd3970239a8b213ee01cfcf2e/68747470733a2f2f7472617669732d63692e6f72672f526f6d616e6f38332f616b69736d65742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Romano83/akismet)[![Latest Stable Version](https://camo.githubusercontent.com/529b919351cc9868ec344028fca6b39aeccea1e0b63b9a4f651afd2419006209/68747470733a2f2f706f7365722e707567782e6f72672f726f6d616e6f38332f616b69736d65742f762f737461626c65)](https://packagist.org/packages/romano83/akismet)[![License](https://camo.githubusercontent.com/30003c538fdd8b00b3ab6737626dcafff9926960ff2fcf725a64f7aafd9eab2b/68747470733a2f2f706f7365722e707567782e6f72672f726f6d616e6f38332f616b69736d65742f6c6963656e7365)](https://packagist.org/packages/romano83/akismet)

A PHP-7 class to communicate with Akismet service to determine if a submitted comment to your website should be considered spam or not.

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

[](#installation)

### Requirements

[](#requirements)

- PHP 7.1

### Steps to install

[](#steps-to-install)

Run : `composer require romano83/akismet` or in your composer.json file

```
"require": {
    "romano83/akismet" : "^1.0"
}

```

How to use it
-------------

[](#how-to-use-it)

Before to use it, you need an [Akismet API key](https://akismet.com/). Once you have one, in order to check if a comment is a spam:

```
