Download the PHP package cleantalk/yii-antispam without Composer
On this page you can find all versions of the php package cleantalk/yii-antispam. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package yii-antispam
Yii-antispam
Anti-spam by CleanTalk extension with protection against spam bots and manual spam.
No Captcha, no questions, no counting animals, no puzzles, no math.
Requirements
- Yii 1.1 or above
- CleanTalk account https://cleantalk.org/register?product=anti-spam
Usage
1) Get access key on https://cleantalk.org/register?platform=yii
2) Extract content from archive under protected/extensions/yii-antispam
3) Open your application configuration in protected/config/main.php and modify components section:
// application components
'components'=>array(
...
'cleanTalk'=>array(
'class'=>'ext.yii-antispam.CleanTalkApi',
'apiKey'=>'*****',
),
...
),
4) Add validator in your model, for example ContactForm
class ContactForm extends CFormModel
{
public $name;
public $email;
public $body;
...
public function rules()
{
return array(
...
array('body',
'ext.yii-antispam.CleanTalkValidator',
'check'=>'message', /* Check type message or user */
'emailAttribute'=>'email',
'nickNameAttribute'=>'name',
/*'on'=>'insert' if ActiveRecord using */),
...
);
}
...
}
5) In form view add special hidden element
...
...
License
GNU General Public License
Resources
All versions of yii-antispam with dependencies
PHP Build Version
Package Version
The package cleantalk/yii-antispam contains the following files
Loading the files please wait ....