1. Go to this page and download the library: Download yuanlj-tea/slide-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/ */
yuanlj-tea / slide-captcha example snippets
composer
use Tncode\SlideCaptcha;
$captcha = new SlideCaptcha();
$captcha->make();
use Tncode\SlideCaptcha;
$captcha = new SlideCaptcha();
$captcha->build();
$captcha->imgout(0,1);
use Tncode\SlideCaptcha;
$captcha = new SlideCaptcha();
$captcha->build();
$linlie = $captcha->getInline();
echo "<img src='".$linlie."' />";
use Tncode\SlideCaptcha;
$captcha = new SlideCaptcha();
$captcha->build();
$captcha->getCode();