Deathbycaptcha
Unofficial PHP wrapper for DeathByCaptcha API
Install / Use
/learn @hmphu/DeathbycaptchaREADME
DeathByCaptcha PHP Wrapper
Unofficial PHP wrapper for DeathByCaptcha API
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist hmphu/deathbycaptcha
or add
"hmphu/deathbycaptcha": "*"
to the require section of your composer.json.
Usage
use hmphu\deathbycaptcha\DeathByCaptchaSocketClient;
use hmphu\deathbycaptcha\DeathByCaptchaClient;
$deathByCaptchaUser = 'Your DBC API Username Here';
$deathByCaptchaPassword = 'Your DBC API Password Here';
$client = new DeathByCaptchaSocketClient($deathByCaptchaUser, $deathByCaptchaPassword);
try {
$balance = $client->get_balance();
if($balance > 0){
/* Put your CAPTCHA file name or opened file handler, and optional solving timeout (in seconds) here: */
$captcha = $client->decode($img, DeathByCaptchaClient::DEFAULT_TIMEOUT * 2);
if ($captcha) {
$text = $captcha['text'];
}
}
} catch (DeathByCaptchaAccessDeniedException $e) {
/* Access to DBC API denied, check your credentials and/or balance */
}
Authors and Contributors
Make with love to DeathByCaptcha service
In 2016, PhuHM (@hmphu), http://hmphu.com
Support or Contact
Having trouble? contact me
Related Skills
node-connect
343.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
92.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
