2017 © Pedro Peláez
 

yii-extension yii-antispam

Anti-spam yii extension by CleanTalk with protection against spam bots and manual spam.

image

cleantalk/yii-antispam

Anti-spam yii extension by CleanTalk with protection against spam bots and manual spam.

  • Sunday, August 30, 2015
  • by CleanTalk
  • Repository
  • 3 Watchers
  • 8 Stars
  • 63 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Yii-antispam

Anti-spam by CleanTalk extension with protection against spam bots and manual spam., (*1)

No Captcha, no questions, no counting animals, no puzzles, no math., (*2)

Build Status, (*3)

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, (*4)

2) Extract content from archive under protected/extensions/yii-antispam, (*5)

3) Open your application configuration in protected/config/main.php and modify components section:, (*6)

// application components
'components'=>array(
    ...
        'cleanTalk'=>array(
            'class'=>'ext.yii-antispam.CleanTalkApi',
            'apiKey'=>'*****',
        ),
    ...
),

4) Add validator in your model, for example ContactForm, (*7)

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, (*8)

<?php $form=$this->beginWidget('CActiveForm', array(
    ...
    <?php echo Yii::app()->cleanTalk->checkJsHiddenField()?>
    ...
    <?php echo CHtml::submitButton('Submit'); ?>
    ...
<?php $this->endWidget(); ?>

License

GNU General Public License, (*9)

Resources

  • https://cleantalk.org/
  • https://github.com/CleanTalk/yii-antispam

The Versions

30/08 2015

dev-master

9999999-dev https://github.com/CleanTalk/yii-antispam

Anti-spam yii extension by CleanTalk with protection against spam bots and manual spam.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

by Rustam Gumerov

extension yii antispam cleantalk

30/08 2015

1.1.0

1.1.0.0 https://github.com/CleanTalk/yii-antispam

Anti-spam yii extension by CleanTalk with protection against spam bots and manual spam.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

by Rustam Gumerov

extension yii antispam cleantalk

17/06 2014

1.0.2

1.0.2.0 https://github.com/CleanTalk/yii-antispam

Anti-spam yii extension by CleanTalk with protection against spam bots and manual spam.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

by Rustam Gumerov

extension yii antispam cleantalk

17/06 2014

v1.0.1

1.0.1.0 https://github.com/CleanTalk/yii-antispam

Anti-spam yii extension by CleanTalk with protection against spam bots and manual spam.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

by Rustam Gumerov

extension yii antispam cleantalk