

PHP Captcha Solver: Bypass reCAPTCHA, Cloudflare, Amazon and more
Use the PHP captcha solver to automatically bypass any captcha — including reCAPTCHA v2, Invisible, v3, Enterprise, 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
- Fast and fully automated captcha bypass
- Native support for PHP 7.4+ / 8.x
- Works with cURL, Guzzle, Symfony HTTP client, and any - REST-compatible tool
- Easy integration with frameworks like Laravel, Symfony, CodeIgniter
- Clean, promise-like async handling via callbacks or jobs
- Pay only for successful solves
- 99.9% uptime
- 24/7 developer support
📦 Use cases
- Accesability
- Web scraping
- Automating form submissions in Laravel or other PHP apps
- Captcha solving in background workers or job queues
- QA testing of protected flows
- Security research
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
composer require solvecaptcha/solvecaptcha
Manual
Clone it manually:
git clone https://github.com/solvercaptcha/solvecaptcha-php.git
Copy src directory to your project and then require autoloader (src/autoloader.php) where needed:
require 'path/to/solvecaptcha-php/src/autoloader.php';
Configuration
SolveCaptcha instance can be created like this:
$solver = new \SolveCaptcha\SolveCaptcha('YOUR_API_KEY');
Also there are few options that can be configured:
$solver = new \SolveCaptcha\SolveCaptcha([
'server' => 'https://solvecaptcha.com',
'apiKey' => 'YOUR_API_KEY',
'defaultTimeout' => 120,
'recaptchaTimeout' => 600,
'pollingInterval' => 10,
'json' => 1,
]);
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 |
| json |
0 |
Json or String format response from res.php API endpoint, json = 1 returns JSON format response |
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.
$result = $solver->normal('path/to/captcha.jpg');
Text Captcha
API method description.
This method can be used to bypass a captcha that requires to answer a question provided in clear text.
$result = $solver->text('If tomorrow is Saturday, what day is today?');
reCAPTCHA v2
API method description.
Use this method to solve reCAPTCHA V2 and obtain a token to bypass the protection.
$result = $solver->recaptcha([
'sitekey' => '6Le-wvkSVVABCPBMRTvw0Q4Muexq1bi0DJwx_mJ-',
'url' => 'https://mysite.com/page/with/recaptcha',
]);
reCAPTCHA v3
API method description.
This method provides reCAPTCHA V3 solver and returns a token.
$result = $solver->recaptcha([
'sitekey' => '6Le-wvkSVVABCPBMRTvw0Q4Muexq1bi0DJwx_mJ-',
'url' => 'https://mysite.com/page/with/recaptcha',
'version' => 'v3',
]);
FunCaptcha
API method description.
FunCaptcha (Arkoselabs) solving method. Returns a token.
$result = $solver->funcaptcha([
'sitekey' => '6Le-wvkSVVABCPBMRTvw0Q4Muexq1bi0DJwx_mJ-',
'url' => 'https://mysite.com/page/with/funcaptcha',
]);
GeeTest
API method description.
Method to solve GeeTest puzzle captcha. Returns a set of tokens as JSON.
$result = $solver->geetest([
'gt' => 'f1ab2cdefa3456789012345b6c78d90e',
'challenge' => '12345678abc90123d45678ef90123a456b',
'url' => 'https://www.site.com/page/',
]);
GeeTest V4
API method description.
Method to solve GeeTest V4 puzzle captcha. Returns a set of tokens as JSON.
$result = $solver->geetest_v4([
'captchaId' => '72bf15796d0b69c43867452fea615052',
'url' => 'https://mysite.com/captcha.html',
]);
KeyCaptcha
API method description.
Token-based method to solve KeyCaptcha.
$result = $solver->keycaptcha([
's_s_c_user_id' => 10,
's_s_c_session_id' => '493e52c37c10c2bcdf4a00cbc9ccd1e8',
's_s_c_web_server_sign' => '9006dc725760858e4c0715b835472f22-pz-',
's_s_c_web_server_sign2' => '2ca3abe86d90c6142d5571db98af6714',
'url' => 'https://www.keycaptcha.ru/demo-magnetic/',
]);
Capy
Token-based method to bypass Capy puzzle captcha.
$result = $solver->capy([
'sitekey' => 'PUZZLE_Abc1dEFghIJKLM2no34P56q7rStu8v',
'url' => 'http://mysite.com/',
'api_server' => 'https://jp.api.capy.me/',
]);
Grid
API method description.