PHPackages                             danielbinsmaier/deathbycaptcha-php - 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. danielbinsmaier/deathbycaptcha-php

ActivePackage

danielbinsmaier/deathbycaptcha-php
==================================

Convenience wrapper around the official DeathByCaptcha PHP library.

1.1.1(5y ago)0661[1 PRs](https://github.com/danielbinsmaier/deathbycaptcha-php/pulls)MITPHPPHP ^7.0

Since Nov 9Pushed 4y ago1 watchersCompare

[ Source](https://github.com/danielbinsmaier/deathbycaptcha-php)[ Packagist](https://packagist.org/packages/danielbinsmaier/deathbycaptcha-php)[ Docs](https://github.com/danielbinsmaier/deathbycaptcha-php)[ RSS](/packages/danielbinsmaier-deathbycaptcha-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

deathbycaptcha-php
==================

[](#deathbycaptcha-php)

Convenience package to simplify the usage of the official DeathByCaptcha PHP library.

Solves captchas using the service of [DeathByCaptcha](https://www.deathbycaptcha.com/).

Install
-------

[](#install)

Composer:

```
composer require danielbinsmaier/deathbycaptcha-php

```

Example
-------

[](#example)

```
use DanielBinsmaier\DeathByCaptcha\Client;

// Create a client instance.
$client = new Client();

// Authenticate and use HTTP client.
$client->http('username', 'password');

// Alternatively, you can authenticate using socket based client.
// $client->socket('username', 'password');

// To authenticate using the authtoken, pick either http or socket and don't use a password.
// $client->http('authtoken');

// Get user information from the service.
$user = $client->user();

// Check balance.
$balance = $client->balance();

// Solve a captcha and wait for it.
$result = $client->solve('captcha.png');

// Additionally, you can also upload the captcha first and check later.
$captcha = $client->upload('captcha.png');

// Check the captcha by polling its state ...
if ($captcha->poll()) {
    // captcha solved ...
}

// ... or poll until it's solved.
$result = $captcha->solve();
```

### Upload and wait for the captcha using http client

[](#upload-and-wait-for-the-captcha-using-http-client)

```
use DanielBinsmaier\DeathByCaptcha\Client;

$client = new Client();
$client->http('username', 'password');
$result = $client->solve('captcha.png');
```

### Upload and wait for the captcha using socket client and authtoken

[](#upload-and-wait-for-the-captcha-using-socket-client-and-authtoken)

```
use DanielBinsmaier\DeathByCaptcha\Client;

$client = new Client();
$client->socket('authtoken');
$result = $client->solve('captcha.png');
```

### Solve reCAPTCHA v2

[](#solve-recaptcha-v2)

```
use DanielBinsmaier\DeathByCaptcha\Client;

$client = new Client();
$client->socket('authtoken');

$data = [
    'googlekey' => 'sitekey',
    'pageurl' => 'url'
];

$params = json_encode($data);

$extra = [
    'type' => 4,
    'token_params' => $params
];

$result = $client->solve(null, $extra);
```

Change Log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for notable changes.

Credits
-------

[](#credits)

- [Daniel Binsmaier](https://github.com/danielbinsmaier)
- [All contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~1 days

Total

3

Last Release

2005d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/danielbinsmaier-deathbycaptcha-php/health.svg)

```
[![Health](https://phpackages.com/badges/danielbinsmaier-deathbycaptcha-php/health.svg)](https://phpackages.com/packages/danielbinsmaier-deathbycaptcha-php)
```

PHPackages © 2026

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