Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atakde/akismet-php
A php package for akismet with PHP 8
https://github.com/atakde/akismet-php
akismet akismet-api akismet-php akismet-php-library akismet-php-package php8 spam-checker
Last synced: 10 days ago
JSON representation
A php package for akismet with PHP 8
- Host: GitHub
- URL: https://github.com/atakde/akismet-php
- Owner: atakde
- Created: 2022-08-28T17:03:43.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-08-28T21:43:32.000Z (over 2 years ago)
- Last Synced: 2024-11-11T20:12:51.476Z (about 1 month ago)
- Topics: akismet, akismet-api, akismet-php, akismet-php-library, akismet-php-package, php8, spam-checker
- Language: PHP
- Homepage:
- Size: 10.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# akismet-php
A php package for akismet with PHP8.
## Installation
Install via composer
```bash
composer require atakde/akismet-php
```## Usage
```php
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());
```