https://github.com/juniorb2ss/deathbycaptcha-php-sdk
Just www.deathbycaptcha.com PHP SDK.
https://github.com/juniorb2ss/deathbycaptcha-php-sdk
Last synced: 10 months ago
JSON representation
Just www.deathbycaptcha.com PHP SDK.
- Host: GitHub
- URL: https://github.com/juniorb2ss/deathbycaptcha-php-sdk
- Owner: juniorb2ss
- License: mit
- Created: 2017-08-02T16:49:04.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-04-29T20:18:03.000Z (about 5 years ago)
- Last Synced: 2025-04-14T12:57:53.062Z (about 1 year ago)
- Language: PHP
- Size: 40 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DeathByCaptcha PHP SDK
[](https://travis-ci.org/juniorb2ss/deathbycaptcha-php-sdk) [](https://scrutinizer-ci.com/g/juniorb2ss/deathbycaptcha-php-sdk/?branch=master) [](https://laravel.com) [](https://scrutinizer-ci.com/g/juniorb2ss/deathbycaptcha-php-sdk/?branch=master) [](https://styleci.io/repos/84957945) [](https://codeclimate.com/github/juniorb2ss/deathbycaptcha-php-sdk)
## CAPTCHA Bypass done right
With Death by Captcha you can solve any CAPTCHA. All you need to do is implement our API, pass us your CAPTCHAs and we’ll return the text. It’s that easy!
Please note that our services should be used only for research projects and any illegal use of our services is strictly prohibited. Any bypass and CAPTCHA violations should be reported to emailcom
The `juniorb2ss/deathbycaptcha-php-sdk` is a package to make Decaptcha easy!
## Install
You can install this package via composer:
``` bash
$ composer require juniorb2ss/deathbycaptcha-php-sdk~1.*
```
## Example
```php
use juniorb2ss\DeathByCaptcha\DeathByCaptcha;
// You need first register and buy credits in http://www.deathbycaptcha.com
$dbc = new DeathByCaptcha('yourUsername', 'yourPassword');
// To retrieve service status
$serviceStatus = $dbc->status();
// To get user informations
$user = $dbc->account();
echo 'My Credits: ' . $user->getBalance(); //1232.2881
// you can pass: path image, base64, image link
$captcha = $dbc->resolve('captcha.jpg');
// supports recaptcha v2
// $captcha = $dbc->resolveV2($googleKey, $webUrl);
// This is captcha ID in service, you need call resolve method with this ID seconds later.
$captchaId = $dbc->captchaId();
// make a simple loop or just sleep
// sleep(7);
$captchaText = $dbc->resolve((int) $captchaId) // return captcha text for human
```
## Tests
```bash
composer run test
```
## Change log
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Credits
- [Carlos Eduardo](https://github.com/juniorb2ss)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.