atakde / akismet-php
Akismet wrapper for PHP 8
V1.0.0
2022-08-28 21:34 UTC
Requires
- php: >=8.0.9
- ext-curl: *
Requires (Dev)
- phpunit/phpunit: ^9.5
This package is not auto-updated.
Last update: 2025-04-22 08:45:38 UTC
README
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('me@atakann.com') ->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());