2017 © Pedro Peláez
 

library united-domains

A library to use United Domains domainreselling.de API

image

hades-architect/united-domains

A library to use United Domains domainreselling.de API

  • Wednesday, April 18, 2018
  • by HadesArchitect
  • Repository
  • 1 Watchers
  • 1 Stars
  • 32 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 433 % Grown

The README.md

United Domains PHP Client Library

Build Status, (*1)

A convenient tool to use United Domains API. It provides tools for direct API calls and convenient wrappers., (*2)

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., (*3)

$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 ;), (*4)

$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., (*5)

// 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
  • [x] Integration with Travis CI
  • [ ] More methods for ClientFacade

The Versions

18/04 2018

dev-master

9999999-dev

A library to use United Domains domainreselling.de API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Aleksandr Volochnev

18/04 2018

0.3.0

0.3.0.0

A library to use United Domains domainreselling.de API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Aleksandr Volochnev

16/04 2018

0.2.1

0.2.1.0

A library to use United Domains domainreselling.de API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Aleksandr Volochnev

16/04 2018

dev-test-php-version

dev-test-php-version

A library to use United Domains domainreselling.de API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Aleksandr Volochnev

16/04 2018

0.2.0

0.2.0.0

A library to use United Domains domainreselling.de API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Aleksandr Volochnev

09/04 2018

0.1.0

0.1.0.0

A library to use United Domains domainreselling.de API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Aleksandr Volochnev