PHP code example of inimist / cakephp-captcha
1. Go to this page and download the library: Download inimist/cakephp-captcha 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/ */
inimist / cakephp-captcha example snippets
$this->loadComponent('Captcha.Captcha');
echo $this->Captcha->create('<fieldname>', $options);
$this->Users->setCaptcha('<fieldname>', $this->Captcha->getCode('<fieldname>'));
$this->Users->setCaptcha('securitycode', $this->Captcha->getCode('securitycode'));
$user = $this->Users->patchEntity($user, $this->request->data);