captcha\CaptchaValidator $skipOnEmpty

$skipOnEmpty public property Whether to skip this validator if the input is empty. public boolean $skipOnEmpty = false

captcha\CaptchaValidator $caseSensitive

$caseSensitive public property Whether the comparison is case sensitive. Defaults to false. public boolean $caseSensitive = false

captcha\CaptchaValidator $captchaAction

$captchaAction public property The route of the controller action that renders the CAPTCHA image. public string $captchaAction = 'site/captcha'

captcha\CaptchaAsset $sourcePath

$sourcePath public property public $sourcePath = '@yii/assets'

captcha\CaptchaAsset $js

$js public property public $js = ['yii.captcha.js']

captcha\CaptchaAsset $depends

$depends public property public $depends = ['yii\web\YiiAsset']

captcha\CaptchaAction validate()

validate() public method Validates the input to see if it matches the generated code. public boolean validate ( $input, $caseSensitive )$input string User input $caseSensitive boolean Whether the comparison should be case-sensitive return boolean Whether the input is valid

captcha\CaptchaAction setHttpHeaders()

setHttpHeaders() protected method Sets the HTTP headers needed by image response. protected void setHttpHeaders ( )

captcha\CaptchaAction run()

run() public method Runs the action. public void run ( )

captcha\CaptchaAction renderImageByImagick()

renderImageByImagick() protected method Renders the CAPTCHA image based on the code using ImageMagick library. protected string renderImageByImagick ( $code )$code string The verification code return string Image contents in PNG format.