Download the PHP package solvercaptcha/solvecaptcha-php without Composer

On this page you can find all versions of the php package solvercaptcha/solvecaptcha-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package solvecaptcha-php

php

PHP Captcha Solver: Bypass reCAPTCHA, Cloudflare, hCaptcha, Amazon and more

Use the PHP captcha solver to automatically bypass any captcha — including reCAPTCHA v2, Invisible, v3, Enterprise, hCaptcha, Cloudflare Turnstile, GeeTest, sliders, Amazon AWS WAF, FunCaptcha, and both image and text based captchas.

✅ Supported captcha solvers

To get started quickly, check out the Captcha Solver API documentation.

Helpful links:

🛠️ Features

📦 Use cases

Need help integrating with your PHP application? Open an issue or fork this repo to contribute.

Installation

This package can be installed via composer or manually

Composer

Manual

Clone it manually:

Copy src directory to your project and then require autoloader (src/autoloader.php) where needed:

Configuration

SolveCaptcha instance can be created like this:

Also there are few options that can be configured:

SolveCaptcha instance options

Option Default value Description
defaultTimeout 120 Polling timeout in seconds for all captcha types except reCAPTCHA. Defines how long the module tries to get the answer from res.php API endpoint
recaptchaTimeout 600 Polling timeout for reCAPTCHA in seconds. Defines how long the module tries to get the answer from res.php API endpoint
pollingInterval 10 Interval in seconds between requests to res.php API endpoint, setting values less than 5 seconds is not recommended

To get the answer manually use getResult method

Solve captcha

When you submit any image-based captcha use can provide additional options to help solvecaptcha workers to solve it properly.

Captcha options

Option Default Value Description
numeric 0 Defines if captcha contains numeric or other symbols see more info in the API docs
minLength 0 minimal answer length
maxLength 0 maximum answer length
phrase 0 defines if the answer contains multiple words or not
caseSensitive 0 defines if the answer is case sensitive
calc 0 defines captcha requires calculation
lang - defines the captcha language, see the list of supported languages
hintImg - an image with hint shown to workers with the captcha
hintText - hint or task text shown to workers with the captcha

Below you can find basic examples for every captcha type. Check out examples directory to find more examples with all available options.

Normal Captcha

API method description.

To bypass a normal captcha (distorted text on image) use the following method. This method also can be used to recognize any text on the image.

Text Captcha

API method description.

This method can be used to bypass a captcha that requires to answer a question provided in clear text.

reCAPTCHA v2

API method description.

Use this method to solve reCAPTCHA V2 and obtain a token to bypass the protection.

reCAPTCHA v3

API method description.

This method provides reCAPTCHA V3 solver and returns a token.

hCaptcha

API method description.

Use this method to solve hCaptcha and obtain a token to bypass the protection.

FunCaptcha

API method description.

FunCaptcha (Arkoselabs) solving method. Returns a token.

GeeTest

API method description.

Method to solve GeeTest puzzle captcha. Returns a set of tokens as JSON.

GeeTest V4

API method description.

Method to solve GeeTest V4 puzzle captcha. Returns a set of tokens as JSON.

KeyCaptcha

API method description.

Token-based method to solve KeyCaptcha.

Capy

Token-based method to bypass Capy puzzle captcha.

Grid

API method description.

Grid method is originally called Old reCAPTCHA V2 method. The method can be used to bypass any type of captcha where you can apply a grid on image and need to click specific grid boxes. Returns numbers of boxes.

Canvas

API method description.

Canvas method can be used when you need to draw a line around an object on image. Returns a set of points' coordinates to draw a polygon.

ClickCaptcha

API method description.

ClickCaptcha method returns coordinates of points on captcha image. Can be used if you need to click on particular points on the image.

Rotate

API method description.

This method can be used to solve a captcha that asks to rotate an object. Mostly used to bypass FunCaptcha. Returns the rotation angle.

Audio

This method can be used to solve a audio captcha

Yandex

Use this method to solve Yandex and obtain a token to bypass the protection.

Lemin Cropped Captcha

Use this method to solve Lemin and obtain a token to bypass the protection.

Cloudflare Turnstile

API method description.

Use this method to solve Turnstile and obtain a token to bypass the protection.

Amazon WAF

Use this method to solve Amazon WAF and obtain a token to bypass the protection.

Tencent

Use this method to bypass Tencent.

MTCaptcha

Use this method to bypass MTCaptcha.

Cutcaptcha

Use this method to bypass Cutcaptcha.

Friendly Captcha

Use this method to bypass Friendly Captcha.

atbCAPTCHA

Use this method to bypass atbCAPTCHA.

DataDome

Use this method to bypass DataDome.

[!IMPORTANT] To solve the DataDome captcha, you must use a proxy. It is recommended to use residential proxies.

CyberSiARA

Use this method to bypass CyberSiARA.

Other methods

send / getResult

These methods can be used for manual captcha submission and answer polling.

balance

API method description.

Use this method to get your account's balance

report

API method description.

Use this method to report good or bad captcha answer.

Proxies

You can pass your proxy as an additional argument for methods: recaptcha, funcaptcha, geetest, geetest v4, keycaptcha, capy puzzle, lemin, turnstile, amazon waf and etc. The proxy will be forwarded to the API to solve the captcha.

Example solving reCAPTCHA V2 using proxy:

Error handling

If case of an error captch solver throws an exception. It's important to properly handle these cases. We recommend to use try catch to handle exceptions.

Examples

Examples of solving all supported captcha types are located in the examples directory.

Get in touch

License

The code in this repository is licensed under the MIT License. See the LICENSE file for more details.


All versions of solvecaptcha-php with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package solvercaptcha/solvecaptcha-php contains the following files

Loading the files please wait ....