vmcms/akismet-php

2.0.1 2018-06-11 07:25 UTC

This package is not auto-updated.

Last update: 2024-03-26 14:47:29 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
}