There is no license information available for the latest version (0.6) of this package.

PHP interface to OpenProvider API

0.6 2019-03-27 13:09 UTC


This package contains a small PHP interface to make use of the OpenProvider API (

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.


include 'vendor/autoload.php';

$api = new OP_API ('');

$request = new OP_Request;
    ->setAuth(array('username' => '[username]', 'password' => '[password]'))
        'domains' => array(
                'name' => 'openprovider',
                'extension' => 'nl'
                '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";