PHP code example of cloudgrayau / cleantalk
1. Go to this page and download the library: Download cloudgrayau/cleantalk 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/ */
cloudgrayau / cleantalk example snippets
$params = [
'name' => '<NAME>',
'email' => '<EMAIL>',
'phone' => '<PHONE>',
'message' => '<MESSAGE>'
];
if (\cloudgrayau\cleantalk\Cleantalk::checkSpam($params)){ /* passed */
} else { /* failed */
$errormsg = \cloudgrayau\cleantalk\Cleantalk::$plugin->antiSpam->error;
}