2017 © Pedro Peláez
 

library openprovider-php

PHP interface to OpenProvider API

image

roelvanduijnhoven/openprovider-php

PHP interface to OpenProvider API

  • Tuesday, February 21, 2017
  • by roelvanduijnhoven
  • Repository
  • 2 Watchers
  • 4 Stars
  • 7,984 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 4 Versions
  • 1 % Grown

The README.md

PHP interface to OpenProvider API

Please don't use this. This is a copy of the sample code shown here. But quality is very low., (*1)

The files as found in this package are almost identical to the ones as distributed by OpenProvider. So why bother creating a package for it? The distribution of OpenProvider consists of a single file and does not make use of Composer and it's autoload features., (*2)

Example

include 'vendor/autoload.php';

$api = new OP_API ('https://api.openprovider.eu');

$request = new OP_Request;
$request
    ->setCommand('checkDomainRequest')
    ->setAuth(array('username' => '[username]', 'password' => '[password]'))
    ->setArgs(array(
        'domains' => array(
            array(
                'name' => 'openprovider',
                'extension' => 'nl'
            ),
            array(
                'name' => 'jouwweb',
                'extension' => 'nl'
            )
        )
    ));

$reply = $api->setDebug(1)->process($request);
echo "Code: " . $reply->getFaultCode() . "\n";
echo "Error: " . $reply->getFaultString() . "\n";
echo "Value: " . print_r($reply->getValue(), true) . "\n";
echo "\n---------------------------------------\n";

echo "Finished example script\n\n";

The Versions

21/02 2017

dev-master

9999999-dev

PHP interface to OpenProvider API

  Sources   Download

The Requires

  • php >=5.2.4

 

21/02 2017

0.4

0.4.0.0

PHP interface to OpenProvider API

  Sources   Download

The Requires

  • php >=5.2.4

 

07/08 2016

0.3

0.3.0.0

PHP interface to OpenProvider API

  Sources   Download

The Requires

  • php >=5.2.4

 

10/05 2014

0.1

0.1.0.0

PHP interface to OpenProvider API

  Sources   Download

The Requires

  • php >=5.2.4