academy01 / simple-captcha
Simple php package to generate and validate captcha.
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:package
Requires
- php: >=7.3
README
Simple package to generate and validate captcha in php
Installation
just add Captcha.php to your project
require 'Captcha.php';
Usage
use Academy01\Captcha\Captcha;
generate new captcha in html code.
<img src="<?php echo Captcha::generate(); ?>">
validate captcha
$captcha = $_POST['captcha']; Captcha::validate($captcha); // TRUE or FALSE
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.