PHPackages                             captchasio/php-captchas-io - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. captchasio/php-captchas-io

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

captchasio/php-captchas-io
==========================

CAPTCHAs.IO - Is PHP Library for working with captchas.io services

112PHP

Since Sep 20Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/captchasio/php-captchas-io)[ Packagist](https://packagist.org/packages/captchasio/php-captchas-io)[ RSS](/packages/captchasio-php-captchas-io/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

CAPTCHAs.IO PHP SDK
===================

[](#captchasio-php-sdk)

---

PHP client for [captchas.io](https://captchas.io) service. This client supports resolving captcha types:

- [Captcha from image](#recognize-captcha-from-image)
- [reCaptcha V2](#recognize-recaptcha-v2-with-proxy-or-without-invisible)
- [Invisible reCaptcha](#recognize-recaptcha-v2-with-proxy-or-without-invisible)
- [reCaptcha V2 Enterprise](#recognize-recaptcha-v2-enterprise-with-proxy-or-without)
- [reCaptcha V3](#recognize-captcha-from-image)
- [reCaptcha V3 Enterprise](#recognize-recaptcha-v3-or-v3-enterprise)
- [Turnstile](#recognize-turnstile)

To Do:

- FunCaptcha
- GeeTest captcha

### Recognize captcha from image

[](#recognize-captcha-from-image)

```
use CaptchasIO\CaptchasIO;

// Get file content
$image = file_get_contents(realpath(dirname(__FILE__)) . '/images/image.jpg');

$imageText = $CaptchasIOClient->recognizeImage($image, null, ['phrase' => 0, 'numeric' => 0], 'en');

echo $imageText;
```

### Recognize reCaptcha V2 (with Proxy or without, Invisible)

[](#recognize-recaptcha-v2-with-proxy-or-without-invisible)

```
$task = new \CaptchasIO\Task\RecaptchaV2Task(
    "http://makeawebsitehub.com/recaptcha/test.php",     // setIsInvisible(true);

// To use Proxy, use this function
$task->setProxy(
    "8.8.8.8",
    1234,
    "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116",
    "http",
    "login",
    "password",
    // also you can add cookie
    "cookiename1=cookievalue1; cookiename2=cookievalue2"
);

$response = $CaptchasIOClient->recognizeTask($task);

echo $response['gRecaptchaResponse'];
```

### Recognize reCaptcha V2 Enterprise (with Proxy or without)

[](#recognize-recaptcha-v2-enterprise-with-proxy-or-without)

```
$task = new \CaptchasIO\Task\RecaptchaV2EnterpriseTask(
    "http://makeawebsitehub.com/recaptcha/test.php",     //  "SOME_ADDITIONAL_TOKEN"
]);

// To use Proxy
$task->setProxy(
    "8.8.8.8",
    1234,
    "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116",
    "http",
    "login",
    "password",
    // also you can add cookie
    "cookiename1=cookievalue1; cookiename2=cookievalue2"
);

$response = $CaptchasIOClient->recognizeTask($task);

echo $response['gRecaptchaResponse'];
```

### Recognize reCaptcha V3 (or V3 Enterprise)

[](#recognize-recaptcha-v3-or-v3-enterprise)

```
$task = new \CaptchasIO\Task\RecaptchaV3Task(
    "http://makeawebsitehub.com/recaptcha/test.php",  // target website address
    "6LfI9IsUAAAAAKuvopU0hfY8pWADfR_mogXokIIZ",      // recaptcha key from target website

    // Filters workers with a particular score. It can have one of the following values:
    // 0.3, 0.7, 0.9
    "0.3"
);

// Recaptcha's "action" value. Website owners use this parameter to define what users are doing on the page.
$task->setPageAction("myaction");

// As V3 Enterprise is virtually the same as V3 non-Enterprise, we decided to roll out it’s support within the usual V3 tasks.
// Set this flag to "true" if you need this V3 solved with Enterprise API. Default value is "false" and
// Recaptcha is solved with non-enterprise API.
$reCaptchaV3Task->setIsEnterprise(true);

$response = $CaptchasIOClient->recognizeTask($task);

echo $response['gRecaptchaResponse'];  // Return 3AHJ_VuvYIBNBW5yyv0zRYJ75VkOKvhKj9_xGBJKnQimF72rfoq3Iy-DyGHMwLAo6a3
```

### Recognize Turnstile

[](#recognize-turnstile)

```
$task = new \CaptchasIO\Task\TurnstileTask(
    // Address of a target web page. Can be located anywhere on the web site, even in a member area.
    // Our workers don't navigate there but simulate the visit instead.
    "http://makeawebsitehub.com/recaptcha/test.php",
    // Turnstile sitekey
    "6LfI9IsUAAAAAKuvopU0hfY8pWADfR_mogXokIIZ"
);

// Optional "action" parameter.
$task->setAction("myaction");

// If you need setup proxy
$task->setProxy(
    "8.8.8.8",
    1234,
    "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0",
    "http",
    "login",
    "password",
    null // also you can add cookie
);

$response = $CaptchasIOClient->recognizeTask($task);

// Token string required for interacting with the submit form on the target website.
echo $response['token'];  // 0.vtJqmZnvobaUzK2i2PyKaSqHELYtBZfRoPwMvLMdA81WL_9G0vCO3y2VQVIeVplG0mxYF7uX.......

// User-Agent of worker's browser. Use it when you submit the response token.
echo $response['userAgent'];  // Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0
```

### Get balance

[](#get-balance)

```
use CaptchasIO\CaptchasIO;

$apiKey = '*********** API_KEY **************';

$service = new \CaptchasIO\Service\CaptchasIO($apiKey);
$CaptchasIOClient = new \CaptchasIO\CaptchasIO($service);

echo "Your Balance is: " . $CaptchasIOClient->balance() . "\n";
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance43

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/f0eed95b1a84e0df74343d4b9c9f1af296d460b64f93dbc13361d8e238ac64c2?d=identicon)[captchasio](/maintainers/captchasio)

---

Top Contributors

[![captchasio](https://avatars.githubusercontent.com/u/58533915?v=4)](https://github.com/captchasio "captchasio (4 commits)")

---

Tags

captchacaptcha-breakingcaptcha-bypasscaptcha-recaptchacaptcha-recognitioncaptcha-services-for-recaptcha-v2captcha-solvercaptcha-solving

### Embed Badge

![Health badge](/badges/captchasio-php-captchas-io/health.svg)

```
[![Health](https://phpackages.com/badges/captchasio-php-captchas-io/health.svg)](https://phpackages.com/packages/captchasio-php-captchas-io)
```

###  Alternatives

[afragen/git-updater-lite

A simple class to integrate with Git Updater for standalone plugin/theme updates.

201.7k](/packages/afragen-git-updater-lite)[aluguest/ical-easy-reader

An easy to understood class, loads a "ics" format string and returns an array with the traditional iCal fields.

122.7k](/packages/aluguest-ical-easy-reader)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
