maxyc/yii2-akismet Akismet api mod

extensionakismetspam

Check comments on spam

Akismet api mod

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist maxyc/yii2-akismet "*"

or add

"maxyc/yii2-akismet": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

    $akismet = new Akismet();
    $akismet->attributes = [
        'api_key'=>'4b1c9f59ef02',
        'comment_type'=>'test akismet',
        'author_name' => 'viagra-test-123',
        'author_email' => 'your@gmail.com',
        'content'=>'test message'
    ];

    $akismet->check();

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

No stable releases.

Comments



No stable releases.



MIT license
Stats
0 github stars & 0 github forks
0 downloads in the last day
0 downloads in the last 30 days
1 total downloads