hades-architect/united-domains 问题修复 & 功能扩展

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

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

hades-architect/united-domains

Composer 安装命令:

composer require hades-architect/united-domains

包简介

A library to use United Domains domainreselling.de API

README 文档

README

Build Status

A convenient tool to use United Domains API. It provides tools for direct API calls and convenient wrappers.

Installation

composer require hades-architect/united-domains 0.2.1

Usage

Simple Client

Recommended way when you would like to have it simple. Provides more convenient way to use API but doesn't cover all known API methods.

$client = new \HadesArchitect\UnitedDomains\ClientFacade($username, $password);
$records = $client->getRecords('my-domain.com');
if ($client->isDomainFree('example.com')) { ... }

Powerful Client

Doesn't have fancy facade methods giving you instead only the main call method. The way to use API directly. No limits, but great power brings great responsibility ;)

$client = new \HadesArchitect\UnitedDomains\Client($username, $password);
$response = $client->call('CheckDomain', ['domain' => 'example.com']);
echo $response;

Traceable Client

It brings more output if you debug something.

// Client
$client = new \HadesArchitect\UnitedDomains\TraceableClient($username, $password);
// Logger 
$client->setLogger(
    new \Monolog\Logger(
        'ud_api',
        [new \Monolog\Handler\StreamHandler('php://stdout', \Monolog\Logger::DEBUG)],
        [new \Monolog\Processor\PsrLogMessageProcessor()]
    )
);
$client->enableDebug();
$response = $client->call('CheckDomain', ['domain' => 'example.com']);
echo $response;

Todo

  • More tests
  • Integration with Travis CI
  • More methods for ClientFacade

统计信息

  • 总下载量: 313
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-04-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固