websupport/iszt-api

Simple API wrapper for official .hu domain registry

v1.0.2 2015-12-02 14:15 UTC

This package is not auto-updated.

Last update: 2024-10-26 18:59:58 UTC


README

Basic api connector for iszt.hu (official hungarian domain registry).

Latest Stable Version

Installation

ISZT api is composer library so you can install the latest version with:

php composer.phar require websupport/iszt-api

Usage

$api = new Websupport\Iszt\Connector('username', 'password');
var_dump($api->domainInfo('domain.hu'));

Few addiotional configuration options can passed to constructor as third (array) argument:

  • url - address of api (see also class' constants API_URL_LIVE and API_URL_TRYOUT)
  • keyPath - Location of stored gnupg keys
  • keyId - Which gnupg key to use for signing request
  • passphrase - Password for that key
  • proxy - proxy url to use for connecting to API
  • proxyAuth - proxy authentication data "username:password"
  • timeout - default timeout for connection requests (defaults to 30 seconds)
  • nsServer - NS server to use
$api = new Websupport\Iszt\Connector('username', 'password', array(
	'url' => Websupport\Iszt\Connector::API_URL_TRYOUT,
	'nsServer' => 'ns1.websupport.sk',
));