PHP code example of pelock / yii2-anti-spam-form

1. Go to this page and download the library: Download pelock/yii2-anti-spam-form library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

pelock / yii2-anti-spam-form example snippets


<div class="active-form">
 $form = ActiveForm::begin(['id' => 'contact-form']); 

// e pelock\antispamform\AntiSpamForm;

...

<div class="active-form">
<!--replace here -->
 $form = AntiSpamForm::begin(['id' => 'contact-form']); 

php composer.phar