PHP code example of openwide / zend-captcha-bundle
1. Go to this page and download the library: Download openwide/zend-captcha-bundle 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/ */
openwide / zend-captcha-bundle example snippets
// app/appKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Openwide\Bundle\ZendCaptchaBundle\OpenwideZendCaptchaBundle(),
);
}
use Openwide\Bundle\ZendCaptchaBundle\Form\Type\ZendCaptchaType;
// ...
$builder // ...
->add('captcha', ZendCaptchaType::class)