hectordev15/anticaptchasolver

a library based on anticaptcha-php by Anti-Captcha.com

v2.1 2019-05-22 13:38 UTC

This package is auto-updated.

Last update: 2024-03-26 02:40:03 UTC


README

nota: para el uso de esta libreria necesitas estar registrado y poseer un balance positivo.

Instalacion

composer require hectordev15/anticaptchasolver

Imagen a texto

$client = new \AntiCaptchaSolver\Client('Tu API Key');

Convertir la imagen a base64

$image = $client->image_url_to_base64('http://url-to-captcha-image');

Crear Nueva tarea de Solvin Captcha

$result = $client->solveCaptcha($image);

Esperar el resultado

echo $result

Solucionando Recaptcha

$client = new \AntiCaptchaSolver\Client('Tu API Key');

Declarar el array con los datos necesarios

$options = 
[
    'websiteURL' => 'URL del sitio con recaptcha',
    'websiteKey' => 'Key de Recaptcha',
];

Crear Nueva tarea

$result = $client->solveNoCaptcha($options);

Esperar el resultado

echo $result

Enviando Recaptcha

$client = new \AntiCaptchaSolver\Client('Tu API Key');

Declarar el array con los datos necesarios

$options = 
[
    'websiteURL' => 'URL del sitio con recaptcha',
    'websiteKey' => 'Key de Recaptcha',
];

Crear Nueva tarea

$result = $client->sendNoCaptcha($options);

El resultado es el ID de la solicitud al servicio

echo $result

Obteniendo Recaptcha Result

$client = new \AntiCaptchaSolver\Client('Tu API Key');

enviar el ID con el id de tu solicitud

echo $client->takeNoCaptcha('Tu ID');

Para Obtener el siteKey

Ubica la siguiente etiqueta HTMl en el sitio

<div class="g-recaptcha" data-sitekey="6Lc_aCMTAAAAABx7u2W0WPXnVbI_v6ZdbM6rYf16"></div>

Mas Informacion Documentacion de anti-captcha : https://anticaptcha.atlassian.net/wiki/display/API/API+v.2+Documentation

Este repositorio es basado https://github.com/Majesko/anti-captcha