PHP code example of atakde / akismet-php
1. Go to this page and download the library: Download atakde/akismet-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
atakde / akismet-php example snippets
$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());
bash
composer