2017 © Pedro Peláez
 

library services_akismet2

Provides an object-oriented interface to the Akismet REST API. The Akismet API is used to detect and to filter spam.

image

pear/services_akismet2

Provides an object-oriented interface to the Akismet REST API. The Akismet API is used to detect and to filter spam.

  • Friday, February 21, 2014
  • by gauthierm
  • Repository
  • 14 Watchers
  • 2 Stars
  • 2,893 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 13 % Grown

The README.md

Services_Akismet2

This package provides an object-oriented interface to the Akismet REST API. The Akismet API is used to detect and to filter spam comments posted on weblogs., (*1)

There are several anti-spam service providers that use the Akismet API. To use the API, you will need an API key from such a provider. Example providers include Wordpress and TypePad., (*2)

Services_Akismet2 has been migrated from PEAR SVN., (*3)

Documentation

Quick Example

 'Test Author',
        'comment_author_email' => 'test@example.com',
        'comment_author_url'   => 'http://example.com/',
        'comment_content'      => 'Hello, World!'
    )
);

$apiKey  = 'AABBCCDDEEFF';
$akismet = new Services_Akismet2('http://blog.example.com/', $apiKey);
if ($akismet->isSpam($comment)) {
    // rather than simply ignoring the spam comment, it is recommended
    // to save the comment and mark it as spam in case the comment is a
    // false positive.
} else {
    // save comment as normal comment
}

?>

Further Documentation

Bugs and Issues

Please report all new issues via the PEAR bug tracker., (*4)

Please submit pull requests for your bug reports!, (*5)

Testing

To test, run either $ phpunit tests/ or $ pear run-tests -r, (*6)

Building

To build, simply $ pear package, (*7)

Installing

To install from scratch $ pear install package.xml, (*8)

To upgrade $ pear upgrade -f package.xml, (*9)

The Versions

21/02 2014

dev-master

9999999-dev https://github.com/pear/Services_Akismet2

Provides an object-oriented interface to the Akismet REST API. The Akismet API is used to detect and to filter spam.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Michael Gauthier

spam akismet

21/02 2014

0.3.1

0.3.1.0 https://github.com/pear/Services_Akismet2

Provides an object-oriented interface to the Akismet REST API. The Akismet API is used to detect and to filter spam.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Michael Gauthier

spam akismet