georgechem / captcha
Captcha verification
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/georgechem/captcha
Requires
- php: >=8.0.0
This package is auto-updated.
Last update: 2025-12-26 22:10:47 UTC
README
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);