Skip to content

Generate Captcha with normal image format via php

License

Notifications You must be signed in to change notification settings

carry0987/PHP-Captcha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP-Captcha

Latest Stable Version
Generate Captcha with normal image format via php

Installation

composer require carry0987/captcha

Usage

Set option for SimpleCaptcha:

$captcha_option = array(
    'code' => '',
    'image_height' => 60,
    'image_width' => 250,
    'captcha_letter' => 'bcdfghjkmnpqrstvwxyz23456789',
    'font_file' => dirname(__DIR__).'/font/monofont.ttf',
    'text_color' => '#142864',
    'noise_color' => '#142864',
    'total_character' => 6,
    'random_dots' => 50,
    'random_lines' => 25,
    'check_sensitive' => false
);

The captcha code is compared case insensitively by default
If you want case sensitive match, update the option check_sensitive from false to true

Screenshot

carry0987

About

Generate Captcha with normal image format via php

Topics

Resources

License

Stars

Watchers

Forks