2017 © Pedro Peláez
 

module ovh-domain-api

Client API for ovh.com domain functions

image

jlaso/ovh-domain-api

Client API for ovh.com domain functions

  • Monday, January 29, 2018
  • by jlaso
  • Repository
  • 1 Watchers
  • 6 Stars
  • 107 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 2 % Grown

The README.md

Latest Stable Version Total Downloads, (*1)

Overview

This module permits comunication with ovh.com API, (*2)

Installation

Checkout a copy of the code::, (*3)

// in composer.json
"require": {
    // ...
    "jlaso/ovh-domain-api": "*"
    // ...
}
// ..

Use of the API in your developments

use JLaso\OvhDomainApi\Service\OvhApi;

$ovhUser = "xxxxx-ovh";
$ovhPass = "123456";
define("SANDBOX_MODE", true);
$locale = "en";

$ovhApi = new OvhApi($ovhUser, $ovhPass, SANDBOX_MODE, $locale);

/*
 * To register a new domain 
 */
$ovhApi->registerDomain("example.com", $ovhUser);

/**
 * To check if a domain it's Available
 */
$isAvailable = $ovhApi->isAvailable("example.com");

print ($isAvailable ? 'The domain is AVAILABLE' : 'The Domain is UNAVAILABLE');

/**
 * To create an [ownerId](http://www.ovh.com/soapi/en/?method=nicCreate) (individual) 
 * to register domains in this account
 */
$ownerId = $ovhApi->createOwnerId(new OwnerDomain(
    'email@example.com',
    'My Name',
    'My LastName',
    'mypassword1234',
    'My Address',
    'My Area',
    'My City',
    'My Country',
    'My Zip Code',
    'My-Phone-Number',
    'My-fax-or-null'
));

$ovhApi->registerDomain('example.com', $ownerId);

You can see the SimpleSample in the Example folder., (*4)

More information in the page of ovh

The Versions

29/01 2018

dev-develop

dev-develop https://github.com/jlaso/ovh-domain-api.git

Client API for ovh.com domain functions

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

api domains ovh

29/01 2018

dev-master

9999999-dev https://github.com/jlaso/ovh-domain-api.git

Client API for ovh.com domain functions

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

api domains ovh

15/04 2015

1.1

1.1.0.0 https://github.com/jlaso/ovh-domain-api.git

Client API for ovh.com domain functions

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

api domains ovh

22/05 2014

1.0.0

1.0.0.0 https://github.com/jlaso/ovh-domain-api.git

Client API for ovh.com domain functions

  Sources   Download

MIT propietary

The Requires

  • php >=5.3.0

 

api domains ovh