Home

Greenek edited this page Sep 13, 2010 · 4 revisions
Clone this wiki locally

Installation

  • Download kohana3-akismet: zip or tar
  • Unzip/untar files in modules/ and rename dir to akismet/
  • Edit application/bootstrap.php: Kohana::modules(array( ... 'akismet' => MODPATH.'akismet', ));
  • Move modules/akismet/config/akismet.php to application/config/
  • Edit your API Key in application/config/akismet.php

Example of use

$comment = array
(
'comment_author'    => 'Author',
'comment_content'   => 'Content',
);
$is_spam = Akismet::factory($comment)->is_spam();

You can find API here .