PHPackages                             openclassrooms/akismet-bundle - 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. openclassrooms/akismet-bundle

ActiveLibrary

openclassrooms/akismet-bundle
=============================

Akismet Bundle

v5.0.0(6mo ago)1408.1k↑44.7%1MITPHPPHP &gt;=8.2CI passing

Since Mar 16Pushed 6mo ago23 watchersCompare

[ Source](https://github.com/OpenClassrooms/AkismetBundle)[ Packagist](https://packagist.org/packages/openclassrooms/akismet-bundle)[ RSS](/packages/openclassrooms-akismet-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (6)Versions (11)Used By (0)

AkismetBundle
-------------

[](#akismetbundle)

[![SensioLabsInsight](https://camo.githubusercontent.com/44b5e059c3e6c13b4effd7a450f2e4e1dc48dd0fe97390f69d5fad79264e22a6/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f32343335353261632d356433332d346539632d623035612d3138366663366635303765612f6d696e692e706e67)](https://insight.sensiolabs.com/projects/243552ac-5d33-4e9c-b05a-186fc6f507ea)[![Build Status](https://camo.githubusercontent.com/4f0a30f30265fdedd307e0c1218b5bca0913ca8e68fe015422cc16c0e5d01ad6/68747470733a2f2f7472617669732d63692e6f72672f4f70656e436c617373726f6f6d732f416b69736d657442756e646c652e737667)](https://travis-ci.org/OpenClassrooms/AkismetBundle)[![Coverage Status](https://camo.githubusercontent.com/121aa82dac146e9e9ff231e124e3cfee18cf5dbbc0867a1f260256166674d3a8/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f4f70656e436c617373726f6f6d732f416b69736d657442756e646c652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/r/OpenClassrooms/AkismetBundle?branch=master)

The AkismetBundle offers integration of the Akismet Library. Akismet Library is a PHP5 library that provides [Akismet Spam Protection service](https://akismet.com/) functionality in your application. See [Akismet](https://github.com/OpenClassrooms/Akismet) for full details.

Installation
------------

[](#installation)

This bundle can be installed using composer:

`composer require openclassrooms/akismet-bundle`

or by adding the package to the composer.json file directly:

```
{
    "require": {
        "openclassrooms/akismet-bundle": "*"
    }
}
```

After the package has been installed, add the bundle to the AppKernel.php file:

```
// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new OpenClassrooms\Bundle\AkismetBundle\OpenClassroomsAkismetBundle(),
    // ...
);
```

Configuration
-------------

[](#configuration)

```
# app/config/config.yml

openclassrooms_akismet:
    key:  %akismet.key%
    blog: %akismet.blog%
```

Usage
-----

[](#usage)

### Default Service

[](#default-service)

```
$commentBuilder = $container->get('openclassrooms.akismet.models.comment_builder');
$akismet = $container->get('openclassrooms.akismet.services.default_akismet_service');

$comment = $commentBuilder->create()
                          ...
                          ->build();

if ($akismet->commentCheck($comment)) {
 // store the comment and mark it as spam (in case of a mis-diagnosis).
} else {
 // store the comment normally
}

// and

$akismet->submitSpam($comment);

// and

$akismet->submitHam($comment);
```

### Bridge Service

[](#bridge-service)

The Bundle integrates a bridge service which gets the Symfony2 requestStack to automatically set the UserIP, UserAgent and Referrer.

```

```

You can use it by getting this service id:

```
$akismet = $container->get('openclassrooms.akismet.services.akismet_service');
```

instead of:

```
$akismet = $container->get('openclassrooms.akismet.services.default_akismet_service');
```

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance67

Regular maintenance activity

Popularity36

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 70.2% 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

Every ~503 days

Recently: every ~333 days

Total

8

Last Release

193d ago

Major Versions

v1.0.0 → v2.0.12016-12-14

v2.0.1 → v3.0.02019-06-26

v3.2.0 → v4.0.02025-03-20

v4.0.0 → v5.0.02025-11-06

PHP version history (4 changes)v1.0.0PHP &gt;=5.4

v3.0.0PHP &gt;=7.1

v3.1.0PHP &gt;=7.4

v4.0.0PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/d82b0e2dcc1728eacb2b83c259311b5ea7c3253bd08f1341d45df79bdd9ba77a?d=identicon)[openclassrooms-admin](/maintainers/openclassrooms-admin)

![](https://www.gravatar.com/avatar/25dcc789b6c61fc8b0b25db6fe0d8d1617788e8bdfff9bee7145f51e97ddace0?d=identicon)[arnaud-23](/maintainers/arnaud-23)

---

Top Contributors

[![arnaud-23](https://avatars.githubusercontent.com/u/2587655?v=4)](https://github.com/arnaud-23 "arnaud-23 (40 commits)")[![kletord](https://avatars.githubusercontent.com/u/392556?v=4)](https://github.com/kletord "kletord (5 commits)")[![samokiss](https://avatars.githubusercontent.com/u/8625072?v=4)](https://github.com/samokiss "samokiss (5 commits)")[![DotnDev](https://avatars.githubusercontent.com/u/57391746?v=4)](https://github.com/DotnDev "DotnDev (2 commits)")[![prollandoc](https://avatars.githubusercontent.com/u/70900670?v=4)](https://github.com/prollandoc "prollandoc (2 commits)")[![emilyreese](https://avatars.githubusercontent.com/u/4388323?v=4)](https://github.com/emilyreese "emilyreese (2 commits)")[![sidux](https://avatars.githubusercontent.com/u/1242225?v=4)](https://github.com/sidux "sidux (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/openclassrooms-akismet-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/openclassrooms-akismet-bundle/health.svg)](https://phpackages.com/packages/openclassrooms-akismet-bundle)
```

###  Alternatives

[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k172.9M1.8k](/packages/symfony-security-bundle)[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

644989.8k1](/packages/sonata-project-entity-audit-bundle)

PHPackages © 2026

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