roelvanduijnhoven/openprovider-php
最新稳定版本:0.9
Composer 安装命令:
composer require roelvanduijnhoven/openprovider-php
包简介
PHP interface to OpenProvider API
README 文档
README
Please don't use this. This is a copy of the sample code shown here. But quality is very low.
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.
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";
统计信息
- 总下载量: 10.87k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2014-05-10