crawly / captcha-breaker
A library meant to assist with breaking captchas, using various providers
Installs: 5 229
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 0
Open Issues: 0
Requires
- php: >=7.2
- ext-curl: *
- ext-json: *
- caseyamcl/guzzle_retry_middleware: ^2.3
- guzzlehttp/guzzle: ^6.3 || ^7.4
- psr/log: ^1 || ^2 || ^3
Requires (Dev)
- phpunit/phpunit: ^8.3
- dev-master
- v1.21.0
- v1.20.0
- v1.19.0
- v1.18.0
- v1.17.0
- v1.16.0
- v1.15.0
- v1.14.0
- v1.13.0
- v1.12.0
- v1.11.0
- v1.10.0
- v1.9.1
- v1.9.0
- v1.8.0
- v1.7.0
- v1.6.0
- v1.5.0
- v1.4.0
- v1.3.0
- v1.2.1
- 1.2.0
- v1.1.0
- v1.0.0
- v0.1.0
- dev-samuelmoraesf/implementa-hcaptcha-capsolver
- dev-danielfs/issues/1259/corrige-antecedentes-criminais
- dev-danielfs/issues/1208/fix-instance
- dev-danielfs/issues/1208/fix-missing-property
- dev-danielfs/issues/1208/pf-antecedentes-criminais
- dev-danielfs/issues/1184/fix-missing-client-key
- dev-danielfs/issues/1184/correcao-trt5
- dev-anticaptcha-enterprise
- dev-CarlosHenriqueDamasceno/turnstile-captcha
- dev-update-psr-log
- dev-actions
- dev-hcaptcha-capmonster
- dev-anticaptcha-recaptcha-invisible
- dev-hcaptcha
This package is auto-updated.
Last update: 2024-10-29 19:09:21 UTC
README
Lib for captcha break
Supported providers:
Install
composer require crawly/captcha-breaker
Usage
Image Captcha
$clientKey = '0cc175b9c0f1b6a831c399e269772661';
$base64Image = 'MTExMTExMTEx';
$imageToText = new ImageToText($clientKey, $base64Image);
$text = $imageToText->solve(); // deditur
Math Captcha
$clientKey = '0cc175b9c0f1b6a831c399e269772661';
$base64Image = 'MTExMTExMTEx';
$imageToText = new ImageToText($clientKey, $base64Image, null, false, false, 1, true);
$text = $imageToText->solve(); // 56
NoCaptcha
$clientKey = '0cc175b9c0f1b6a831c399e269772661';
$websiteURL = 'http://test.org';
$websiteKey = '6Lc_aCMTAAAAABx7u2N0D1XnVbI_v6ZdbM6rYf16';
$imageToText = new NoCaptcha($clientKey, $websiteURL, $websiteKey);
$text = $imageToText->solve(); // 3AHJ_VuvYIBNBW5yyv0zRYJ75VkOKvhKj9_xGBJKnQimF72rfoq3Iy-DyGHMwLAo6a3
ReCaptchaV3
$clientKey = '0cc175b9c0f1b6a831c399e269772661';
$websiteURL = 'http://test.org';
$websiteKey = '6Lc_aCMTAAAAABx7u2N0D1XnVbI_v6ZdbM6rYf16';
$imageToText = new ReCaptchaV3($clientKey, $websiteURL, $websiteKey, 'myverify', ReCaptchaV3::MIN_SCORE_0_7);
$text = $imageToText->solve(); // 3AHJ_VuvYIBNBW5yyv0zRYJ75VkOKvhKj9_xGBJKnQimF72rfoq3Iy-DyGHMwLAo6a3
Log
PSR Log support
$clientKey = '0cc175b9c0f1b6a831c399e269772661';
$base64Image = 'MTExMTExMTEx';
$imageToText = new ImageToText($clientKey, $base64Image, $logger);
$text = $imageToText->solve(); // deditur