PHP code example of thytanium / captcha
1. Go to this page and download the library: Download thytanium/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/ */
thytanium / captcha example snippets
'providers' => array(
...
'Thytanium\Captcha\CaptchaServiceProvider',
);
'aliases' => array(
'Captcha' => 'Thytanium\Captcha\Facades\Captcha',
);
<img src="{{URL::to('captcha')}}">
$rules = [
'text_input' => 'nput::all());
'length' => 6
'width' => 200,
'height' => 50
'case_sensitive' => true
'case' => 'upper' //For upper case letters only
'case' => 'lower' //For lower case letters only
'case' => 'mixed' //For both upper and lower case
'letters' => true,
'numbers' => false
'letters' => false,
'numbers' => true
'letters' => true,
'numbers' => true
'angle' => 15
'separation' => 30,
'h_lines' => 5, //Horizontal lines
'v_lines' => 20 //Vertical lines
'background' => [250, 250, 250]
'line_color' => [220, 220, 220]
'colors' => [
[0, 83, 160],
[33, 125, 211],
[30, 134, 232],
[11, 72, 130],
[13, 119, 219],
[0, 102, 150],
[51, 113, 142],
],
'font' => 'Prototype' //Ignore .ttf extension
'font' => 'Impact' //Ignore .ttf extension
'font' => 'BrianJames' //Ignore .ttf extension
'font' => 'Spinwerad' //Ignore .ttf extension
'size' => 30
'quality' => 100,
console
php artisan vendor:publish --provider="Thytanium\Captcha\CaptchaServiceProvider"