$captcha = new Captcha;
$captcha->setFont('path/to/font.ttf')
->setBackground('path/to/background.jpg');
$captcha->draw();
$data = $captcha->show();
echo json_encode($data);
$captcha->render();
Genera imágenes simples
$captcha = new Captcha;
$captcha->setFont('path/to/font.ttf')
->setBackground('path/to/background.jpg');
$captcha->draw();
$data = $captcha->show();
echo json_encode($data);
$captcha->render();
Genera imágenes simples