register-be/register-api

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (v1.0) of this package.

Register.be public API for customers with direct activation

v1.0 2018-09-04 12:03 UTC

This package is not auto-updated.

Last update: 2021-06-18 03:17:59 UTC


README

Build Status Coverage Status

The Register.be public API project wraps around Guzzle and offers HMAC authentication. You can use the client to easily connect to the Register.be public API endpoint.

To learn more about the Register.be public API, go to https://api.register.be/.

Install

composer require register-be/register-api

Example

The code example below registers a new domain name on your account.

<?php

require dirname(__DIR__) . '/vendor/autoload.php';

$client = new \RegisterBe\Client(
    [
        'debug' => true,
        'base_uri' => 'https://api.register.be',
        'registerbe_api_key' => 'XXXX',
        'registerbe_api_secret' => 'YYYY'
    ]
);

$body = new \stdClass();
$body->domain_name = 'domain-name-to-register.eu';

// Register domain name
$response = $client->post('/v2/domains/registrations', ['json' => $body]);

// Dump location header with link to provisioning job
var_dump(
    $response->getHeader('Location')
);

Go to the examples folder to see more examples.