PHP code example of jason / captcha

1. Go to this page and download the library: Download jason/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/ */

    

jason / captcha example snippets


'math' => [
    'length' => 9,
    'width' => 120,
    'height' => 36,
    'quality' => 90,
    'math' => true,
],

'chinese' => [
    'length' => 4,
    'width' => 120,
    'height' => 36,
    'sensitive' => true,
    'angle' => 20,
    'lines' => 4,
],

public function store(Request $request)
{
    $request->validate([
        'captcha' => '

public function apiStore(Request $request)
{
    $request->validate([
        'captcha' => '
bash
php preview.php
bash
php artisan vendor:publish --provider="Jason\Captcha\CaptchaServiceProvider" --tag="config"