captcha\CaptchaAction $backColor

$backColor public property The background color. For example, 0x55FF00. Defaults to 0xFFFFFF, meaning white color. public integer $backColor = 16777215

captcha\Captcha run()

run() public method Renders the widget. public void run ( )

captcha\Captcha registerClientScript()

registerClientScript() public method Registers the needed JavaScript. public void registerClientScript ( )

captcha\Captcha init()

init() public method Initializes the widget. public void init ( )

captcha\Captcha getClientOptions()

getClientOptions() protected method Returns the options for the captcha JS widget. protected array getClientOptions ( )return array The options

captcha\Captcha checkRequirements()

checkRequirements() public static method Checks if there is graphic extension available to generate CAPTCHA images. This method will check the existence of ImageMagick and GD extensions. public static string checkRequirements ( )return string The name of the graphic extension, either "imagick" or "gd". throws yii\base\InvalidConfigException if neither ImageMagick nor GD is installed.

captcha\Captcha $template

$template public property The template for arranging the CAPTCHA image tag and the text input tag. In this template, the token {image} will be replaced with the actual image tag, while {input} will be replaced with the text input tag. public string $template = '{image} {input}'

captcha\Captcha $options

$options public property The HTML attributes for the input tag. See also yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. public array $options = ['class' => 'form-control']

captcha\Captcha $imageOptions

$imageOptions public property HTML attributes to be applied to the CAPTCHA image tag. See also yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. public array $imageOptions = []

captcha\Captcha $captchaAction

$captchaAction public property The route of the action that generates the CAPTCHA images. The action represented by this route must be an action of yii\captcha\CaptchaAction. Please refer to yii\helpers\Url::toRoute() for acceptable formats. public string|array $captchaAction = 'site/captcha'