atakde / akismet-php
Akismet wrapper for PHP 8
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/atakde/akismet-php
Requires
- php: >=8.0.9
- ext-curl: *
Requires (Dev)
- phpunit/phpunit: ^9.5
This package is not auto-updated.
Last update: 2025-10-07 10:48:10 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());