hmphu/deathbycaptcha 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hmphu/deathbycaptcha

最新稳定版本:1.0.0

Composer 安装命令:

composer require hmphu/deathbycaptcha

包简介

DeathByCaptcha extension

关键字:

README 文档

README

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

统计信息

  • 总下载量: 55.01k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 4
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2015-11-09