Property | Type | Description | |
---|---|---|---|
$_angleAmplitude | integer | ||
$_bgRGB | string | ||
$_charset | string | ||
$_fonts | array | ||
$_length | integer | ||
$_minInterval | integer | ||
$_noiseCharCount | integer | ||
$_sessionVar | string |
Method | Description | |
---|---|---|
__construct ( array | |
Captcha constructor. | |
generate ( integer $width = 100, integer $height = 30, integer $ttl = 300 ) : ManaPHP\Http\ResponseInterface | ||
setNoiseCharCount ( integer $count ) : static | ||
tryVerify ( string $code ) : void | ||
verify ( string $code ) : void |
Method | Description | |
---|---|---|
_generateByGd ( string $code, integer $width, integer $height ) : string | ||
_generateByImagic ( string $code, integer $width, integer $height ) : ManaPHP\Http\ResponseInterface | ||
_rand_amplitude ( float $a ) : float | ||
_verify ( string $code, boolean $isTry ) : void |
public __construct ( array | |
||
$options | array | |
protected _rand_amplitude ( float $a ) : float | ||
$a | float | |
return | float |
public setNoiseCharCount ( integer $count ) : static | ||
$count | integer | |
return | static |