Skip to content

dondominio/sdk-php

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 

The DonDominio/MrDomain API SDK for PHP

Leverage the powerful DonDominio/MrDomain API in your own applications, projects, and websites using our easy-to-use SDK for PHP.

Install the library, include one class, and you will be making requests to the DonDominio/MrDomain API in a matter of seconds.

The Wiki contains information on how to get started and about everything you may need.

For more information, documentation, support, and guides, visit dondominio.dev/en/api/docs/sdk-php/.

A Simple Example

<?php

// Load the DonDominio SDK autoloader
require_once "/path/to/lib/src/autoloader.php";

// Create an instance of the DonDominio API Client
$dondominio = new \Dondominio\API\API([
    'apiuser' => "YOUR_API_USER",
    'apipasswd' => "YOUR_API_PASSWORD"
]);

// Request the account information to the API
$response = $dondominio->account_info();

// Get the API Response in Array and print it
print_r($response->getResponseData());

You can see more examples in examples file

SDK para PHP de la API de DonDominio/MrDomain

Saca partido de la poderosa API de DonDominio/MrDomain en tus propias aplicaciones, proyectos y páginas web usando nuestro sencillo SDK para PHP.

Instala la librería, incluye una clase y estarás haciendo peticiones a la API de DonDominio/MrDomain en cuestión de segundos.

La Wiki contiene información sobre como empezar y prácticamente todo lo que puedas necesitar.

Para más información, documentación, soporte y guías, visita dondominio.dev/es/api/docs/sdk-php/.

Código de ejemplo

<?php

// Carga el autoloader del SDK de DonDominio
require_once "/path/to/lib/src/autoloader.php";

// Crea una instancia del cliente de la API de DonDominio
$dondominio = new \Dondominio\API\API([
    'apiuser' => "YOUR_API_USER",
    'apipasswd' => "YOUR_API_PASSWORD"
]);

// Consulta a la API la información de la cuenta
$response = $dondominio->account_info();

// Obtiene la respuesta de la API en formato Array y lo imprime
print_r($response->getResponseData());

Puedes consultar más ejemplos en el fichero de ejemplos