zennolab / capmonstercloud.client
This package is abandoned and no longer maintained.
No replacement package was suggested.
There is no license information available for the latest version (v1.3.5) of this package.
API client for capmonster.cloud
Package info
github.com/ZennoLab/capmonstercloud-client-php
pkg:composer/zennolab/capmonstercloud.client
v1.3.5
2023-09-11 06:13 UTC
Requires
- phpunit/phpunit: ^7.5
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Usage
include './client/Client.php'; include './client/src/captcha/ImageToText.php'; include './client/src/captcha/RecaptchaV2.php'; include './client/src/captcha/HCaptcha.php'; $client = new Client("your_client_key"); //solve image captcha $body = "base64_captcha_image"; $imageRequest = new ImageToTextRequest($body); $imageResult = $client->solve($imageRequest); //solve Recaptcha 2 (without proxy) $websiteURL = "https://lessons.zennolab.com/captchas/recaptcha/v2_simple.php?level=high"; $websiteKey = "6Lcg7CMUAAAAANphynKgn9YAgA4tQ2KI_iqRyTwd"; $recaptchaV2Request = new RecaptchaV2Request($websiteURL, $websiteKey); $recaptchaV2Result = $client->solve($recaptchaV2Request); // solve HCaptcha (without proxy) $websiteUrl = "https://lessons.zennolab.com/captchas/hcaptcha/?level=easy"; $websiteKey = "472fc7af-86a4-4382-9a49-ca9090474471"; $hcatpchaRequest = new HCaptchaRequest($websiteURL, $websiteKey); $hcaptchaResult = $client->solve($hcatpchaRequest);
Response format
The result of the solve method always contains two fields: bool result, a request success indicator, and a mixed message field containing a text description of the error or an object of a successful response from the server.
Supported captchas
- GeeTestProxylessRequest
- GeeTestRequest
- HCaptchaProxylessRequest
- HCaptchaRequest
- ImageToTextRequest
- RecaptchaV2ProxylessRequest
- RecaptchaV2Request
- RecaptchaV3ProxylessRequest
- RecaptchaV2EnterpriseProxylessRequest
- RecaptchaV2EnterpriseRequest
- TurnstileProxylessRequest
- TurnstileRequest
- RecaptchaComplexImageTaskRequest
- HcaptchaComplexImageTaskRequest