spqr/vendor/webman/captcha/demo/inline.php

23 lines
412 B
PHP
Raw Normal View History

2024-11-05 12:10:06 +08:00
<?php
require_once __DIR__.'/../vendor/autoload.php';
use Webman\Captcha\CaptchaBuilder;
$captcha = new CaptchaBuilder();
$captcha->build();
?>
<!DOCTYPE html>
<body>
<html>
<meta charset="utf-8" />
</html>
<body>
<h1>Inline Captcha</h1>
<img src="<?php echo $captcha->inline(); ?>"/><br/>
Phrase: <?php echo $captcha->getPhrase(); ?>
</body>
</body>