Codigos captcha Genera la imagen $captcha = new Captcha; $captcha->setFont('path/to/font.ttf') ->setBackground('path/to/background.jpg'); $captcha->draw(); Mostrar datos de la imagen $data = $captcha->show(); echo json_encode($data); Mostrar la imagen $captcha->render();