PHPackages                             tvaliasek/simple-php-akismet - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. tvaliasek/simple-php-akismet

ActiveLibrary

tvaliasek/simple-php-akismet
============================

Simple class for check comment or contact form spam against Akismet API

0.1.0(5y ago)02MITPHPPHP ^7.4

Since Sep 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/tvaliasek/simple-php-akismet)[ Packagist](https://packagist.org/packages/tvaliasek/simple-php-akismet)[ RSS](/packages/tvaliasek-simple-php-akismet/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

Simple Akismet PHP client
=========================

[](#simple-akismet-php-client)

Very simple modern PHP implementation of Akismet spam check service.

### Install

[](#install)

```
composer require tvaliasek/simple-php-akismet

```

### Use

[](#use)

```
use SimpleAkismet\Client;
use SimpleAkismet\DataObject\Message;
use SimpleAkismet\Exception\AkismetException;
use SimpleAkismet\Exception\InvalidKeyException;
use SimpleAkismet\Exception\InvalidStatusCodeException;

/*
* Client covers all four API methods:
* verifyKey, checkSpam, submitSpam and submitHam
*/
$client = new Client(
    'yourAkismetApiKey',
    'https://www.example.com/',
    new \GuzzleHttp\Client()
);

$message = (new Message())
    ->setBlog('https://www.example.com/')
    ->setCommentAuthorEmail('john@doe.com')
    ->setCommentContent('Cheap viagra for sale on: www.foo.com')
    ->setCommentDateGmt(new \DateTime());
    // all available fields has their own setter and getter

try {
    if ($client->checkSpam($message)) {
        // do something with spam message
    }
} catch (AkismetException | InvalidKeyException | InvalidStatusCodeException $e) {
    // ...
}
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2071d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8644946?v=4)[Tomáš Valiašek](/maintainers/tvaliasek)[@tvaliasek](https://github.com/tvaliasek)

---

Top Contributors

[![tvaliasek](https://avatars.githubusercontent.com/u/8644946?v=4)](https://github.com/tvaliasek "tvaliasek (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tvaliasek-simple-php-akismet/health.svg)

```
[![Health](https://phpackages.com/badges/tvaliasek-simple-php-akismet/health.svg)](https://phpackages.com/packages/tvaliasek-simple-php-akismet)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
