1. Go to this page and download the library: Download topvisor/uncaptcha 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/ */
topvisor / uncaptcha example snippets
// ImageToText и другие модули распознавания см. в директории /src/
�кстовой капчи
$uncaptcha = new \Topvisor\Uncaptcha\ImageToText();
$uncaptcha->setTimeout(20); // таймаут соедиения
$uncaptcha->setTaskTimeout(240); // таймаут разгадывания
$uncaptcha->setDebugLevel(1); // 0 - без лога, 1 - короткий лог, 2 - полный лог
$uncaptcha->setDebugLabel('rc');
$uncaptcha->setUseHTTPS(true);
$uncaptcha->setHost('rucaptcha.com');
$uncaptcha->setV(1); // in.php / res.php style
$uncaptcha->setKey('%API_KEY%');
$uncaptcha->setBodyFromFile('%URL_IMAGE%');
$result = $uncaptcha->resolve();
if(!$result){
echo 'Ошибка разгадывания капчи: '.$uncaptcha->getErrorMessage();
return;
}
echo 'Капча разгадана: "'.$result.'" за '.$uncaptcha->getTaskElapsed().' сек.';
$uncaptcha = new \Topvisor\Uncaptcha\ImageToText();
// далее необходимо указать доступ к сервису и опции для разгадывания капчи и запустить разгадывание (см. пример выше)
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.