Skip to content

atakde/akismet-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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());