Download the PHP package capmonstercloud/capmonster-client without Composer

On this page you can find all versions of the php package capmonstercloud/capmonster-client. 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 capmonster-client

CapMonster Cloud PHP SDK: PHP Captcha Solver & Captcha Bypass for reCAPTCHA, Cloudflare Turnstile and GeeTest

🔄 Migrating from 2Captcha or Capsolver? CapMonster Cloud is a fast, cost-effective 2captcha alternative and capsolver alternative for PHP: reCAPTCHA v3 from $0.90 per 1,000 solves, which is up to 38% cheaper than 2Captcha and 10% cheaper than Capsolver, with an API response time of ≤ 2 s. Already have software built for 2Captcha? CapMonster Cloud supports the 2Captcha API format. Moving your PHP code takes just a few lines: see the Migration examples below. Full comparison and disclaimer are in the comparison section below.

CapMonster Cloud PHP SDK - captcha solver and captcha bypass API client

Fast, AI-driven CAPTCHA solving client for PHP. Seamlessly bypass Cloudflare Turnstile, reCAPTCHA v2/v3/Enterprise and GeeTest in web scraping and browser automation.

GitHub Stars GitHub Forks


PHP client library for the CapMonster Cloud captcha solving API. Use this PHP captcha solver for captcha bypass: bypass reCAPTCHA v2, reCAPTCHA v3, reCAPTCHA v2 Enterprise and Cloudflare Turnstile, solve GeeTest, reCAPTCHA image-click and text (image-to-text) captchas in web scraping, browser automation and backend scripts: send a request class to the solve method and get a ready solution. As the official CapMonster SDK for PHP, it is a cost-effective 2captcha alternative and capsolver alternative.

👉 Get your Free API Key & Free Trial Balance on CapMonster Cloud


⚡ Highlights


📊 CapMonster Cloud vs 2Captcha vs Capsolver

Looking for a 2captcha alternative or a capsolver alternative for PHP web scraping and automation? Compare price, speed and success rate.

reCAPTCHA v3

Parameter CapMonster Cloud 2Captcha CapSolver DeathByCaptcha
Price per 1,000 solves (from) $0.90 $1.45 $1.00 $2.89
API response time ≤ 2 s ≤ 2 s < 3 s ≤ 3 s
Solving success rate up to 99% ~77–92% ~95–98% ~64–90%

Disclaimer: 2Captcha, CapSolver, and DeathByCaptcha are trademarks of their respective owners. CapMonster Cloud is not affiliated with these entities. Performance metrics and pricing comparisons are based on publicly available data and internal benchmarking conducted on 27.09.2026.

Cloudflare Turnstile

Parameter CapMonster Cloud 2Captcha Anti-Captcha DeathByCaptcha
Price per 1,000 solves (from) $1.30 $1.45 $2.00 $2.89
Time to solve 6.24 s* 16.9 s 20.33 s ~13 s
Solving success rate 99%* 96% 96% 96%

Disclaimer: 2Captcha, Anti-Captcha, and DeathByCaptcha are trademarks of their respective owners. CapMonster Cloud is not affiliated with these entities. Performance metrics and pricing comparisons are based on publicly available data and internal benchmarking as of 12.10.2026.

What this means in practice:


📦 Installation

Install the package with Composer. PHP 8.1 or newer with the curl and json extensions is required.

Then load Composer's autoloader with require 'vendor/autoload.php'; as shown below.


🚀 Quick Start: Solve and Bypass Captchas in PHP

Response format

solve() returns the solution object of the server response as an associative array, for example ['gRecaptchaResponse' => '...'] for reCAPTCHA or ['text' => '...'] for an image. If the task cannot be solved, solve() throws an exception:


🔄 Migrating from 2Captcha or Capsolver

Already use 2Captcha or Capsolver in your PHP scraper or bot? Replace only the solver call and keep the rest of your code unchanged. CapMonster Cloud follows the same flow: send the website URL and sitekey, receive the token.

Before: 2Captcha (2captcha-php)

Migrating from Capsolver

CapMonster Cloud uses the same createTask / getTaskResult flow, so if you call the Capsolver HTTP API directly from PHP, you can switch to the CapMonster Cloud PHP SDK or follow the API Methods Reference.

After: CapMonster Cloud

Only the client, the API key and the request class change: the token is used exactly as before, so the rest of your scraper stays the same.

Keep existing 2Captcha-based software

Software that already speaks the 2Captcha API can work with CapMonster Cloud without code changes. See the guide for connecting other services' APIs.


🛡️ Supported CAPTCHA Types: Bypass reCAPTCHA, Cloudflare Turnstile, GeeTest and More

Use this PHP captcha solver for captcha bypass in web scraping and automation: reCAPTCHA bypass (v2, v2 Enterprise, v3), Cloudflare Turnstile solver, GeeTest solver, FunCaptcha solving and image-to-text recognition.

All task types follow the official CapMonster Cloud API documentation:

Captcha type PHP request classes Documentation
reCAPTCHA v2 RecaptchaV2Request (optional proxy) RecaptchaV2Task
reCAPTCHA v2 Enterprise RecaptchaV2EnterpriseRequest (optional proxy) RecaptchaV2EnterpriseTask
reCAPTCHA v3 RecaptchaV3ProxylessRequest RecaptchaV3TaskProxyless
reCAPTCHA image-click (ComplexImageTask) RecaptchaComplexImageTaskRequest ComplexImageTask reCAPTCHA
Cloudflare Turnstile TurnstileRequest::standard() and other TurnstileRequest factories TurnstileTask
GeeTest GeetestRequest::v3(), GeetestRequest::v4() GeeTestTask
Text captcha (image to text) ImageToTextRequest ImageToTextTask

🛠️ How It Works


⚙️ Best Practices


💡 Use Cases


❓ FAQ

Is CapMonster Cloud a 2Captcha alternative for PHP? Yes. It is a captcha solving service with an official PHP SDK. For reCAPTCHA v3 it starts at $0.90 per 1,000 solves versus $1.45 at 2Captcha, which is up to 38% cheaper. For Cloudflare Turnstile it starts at $1.30 versus $1.45, which is 10% cheaper.

Is CapMonster Cloud a Capsolver alternative for PHP? Yes. For reCAPTCHA v3 it is 10% cheaper than Capsolver ($0.90 versus $1.00 per 1,000 solves) and shows an API response time of ≤ 2 s versus < 3 s. See the comparison table above and its disclaimer.

How do I migrate from 2Captcha or Capsolver to CapMonster Cloud in PHP? Create a CapMonsterClient with your CapMonster Cloud API key, build the matching request class and call $client->solve(). See the migration examples above. Software that already supports the 2Captcha API can also be connected through the CapMonster Cloud guide.

Is there an official PHP captcha solver from CapMonster Cloud? Yes. This repository is the official PHP client library for the CapMonster Cloud captcha solving service.

How do I bypass reCAPTCHA v2 in PHP? Create a CapMonsterClient with your API key, build a RecaptchaV2Request with the page URL and sitekey, call $client->solve($request) and read the token from the gRecaptchaResponse key of the returned array. See the reCAPTCHA v2 documentation.

How do I bypass Cloudflare Turnstile in PHP? Use TurnstileRequest::standard() (pass proxy: to solve through your proxy) from the supported types table above. According to the Turnstile documentation, all Turnstile subtypes are supported automatically: manual, non-interactive and invisible.

Which captcha types does the PHP SDK solve? reCAPTCHA v2, v2 Enterprise and v3, Cloudflare Turnstile, GeeTest, image-to-text and reCAPTCHA image-click tasks. See the supported types table above and the Supported Captchas Overview.

How do I get an API key? Register on CapMonster Cloud, top up your balance and copy your API key. The Getting Started Guide describes each step.

How fast are captchas solved? On average between 1 and 30 seconds, depending on the captcha type. More details are in the CapMonster Cloud FAQ.

How long is a reCAPTCHA v2 solution valid? According to the reCAPTCHA v2 documentation, the returned token is valid for 60 seconds after the captcha is solved, so use it right away.

Where is the full API reference? See the API Methods Reference.

What does the solve method return? The solution object of the server response as an associative array. Errors are thrown as exceptions that extend CapMonsterException, for example GetResultException with the API errorCode, or TimeoutException.


⚖️ Responsible Use

CapMonster Cloud is intended for legitimate business purposes only, such as testing your own website or a website you are authorized to test, and recognizing images you provide. Read more about ethical and transparent captcha automation.


📚 Documentation & Support

Other official SDKs & integrations


📄 License

CapMonster Cloud


All versions of capmonster-client with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-curl Version *
ext-json Version *
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 capmonstercloud/capmonster-client contains the following files

Loading the files please wait ...