Skip to content

georgechem/packagist-captcha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generates Captcha using GD library


Install with composer:

composer require georgechem/captcha

Usage: (Captcha generation)

use Georgechem\Captcha\Captcha\Captcha;

require __DIR__ . '/vendor/autoload.php';
// Init session storage for Captcha - expire time can be edited (default 5 minutes)
$captcha = Captcha::getInstance();
// create end echo image with captcha
$captcha->create();

Usage: (Captcha verification)

use Georgechem\Captcha\Captcha\Captcha;

require __DIR__ . '/vendor/autoload.php';

$captcha = Captcha::getInstance();
// @Returns bool, true on success, false on failure
$captcha->verify($text);

About

installable captcha library

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages