Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 662 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 662 Bytes

akismet-php

A php package for akismet with PHP8.

Installation

Install via composer

composer require atakde/akismet-php

Usage

require 'vendor/autoload.php';

$akismetPHP = new \Atakde\AkismetPhp\AkismetPhp();
$akismetPHP->setAkismetKey('YOUR_API_KEY')
    ->setCommentAuthor('Atakan')
    ->setCommentAuthorEmail('[email protected]')
    ->setCommentAuthorUrl('https://atakann.com')
    ->setCommentContent('This is a test comment')
    ->setBlogUrl('https://atakann.com')
    ->setPermalink('https://atakann.com')
    ->setReferrer('https://atakann.com')
    ->setCommentType('comment');

var_dump($akismetPHP->checkSpam());