PHP code example of cleverweb-cz / text-3d-captcha
1. Go to this page and download the library: Download cleverweb-cz/text-3d-captcha library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cleverweb-cz / text-3d-captcha example snippets
$map = new GdFont('ABCD 123');
$image = new Svg(new Axonometry($map));
header('Content-Type: '.Svg::getMimeType());
$image->save(); // Output to browser
/**
* noise = 0
* padding = 0.2 (20%)
* emboss height volume = 0.7 (70%)
*/
$map = new GdFont('ABCD 123', 0, .2, .7);
/**
* Projection scale = 6x
* Projection angle = 1.57 rad (90 deg)
* Foreground color = red
* Background color = gray
*/
$image = new Png(new Axonometry($map, 6., 1.57), 0xff0000, 0xcccccc);
header('Content-Type: '.Png::getMimeType());
$image->save(); // Output to browser
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.