vmcms/akismet-php

2.0.1 2018-06-11 07:25 UTC

This package is not auto-updated.

Last update: 2022-12-06 08:53:40 UTC


README

Installing via Composer

{
    "require": {
        "vmcms/akismet-php": "~2.0"
    }
}

Usage

<?php 

$aksimet = new \Akismet\Akismet('YOURAPIKEY');

$spamCheck = $aksimet->check([
    'permalink' => 'http://www.example.com',
    'email'     => 'some@example.com',
    'content'   => 'your message'
]);

if ($spamCheck) {
    //STOP - Spam detected
} else {
    //All is well
}