Akismet api mod
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.
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();
No stable releases.
Comments