netzkolchose / php-simplexmlrpc
PHP 的简单 XMLRPC 客户端库
v0.0.3
2018-04-17 18:09 UTC
Requires
- php: >=5.4.0
Requires (Dev)
- php-coveralls/php-coveralls: >=2.0
This package is not auto-updated.
Last update: 2024-09-20 22:06:55 UTC
README
PHP 的简单 XMLRPC 客户端库。
支持
- HTTP、HTTPS 和 HTTP+UNIX(通过 Unix 域套接字进行 HTTP 通信)
- 基本认证
- multicall
示例
$server = new \SimpleXmlRpc\ServerProxy("https://example.com:443/xmlprc"); $server->system->listMethods(); $server->some_method($arg1, $arg2); $server->some->very->deep->method();
多调用示例
$server = new \SimpleXmlRpc\ServerProxy("https://example.com:443/xmlprc"); $multicall = new \SimpleXmlRpc\Multicall($server); $multicall->system->listMethods(); $multicall->some_func(); $multicall->some_other_func($arg1, $arg2); $result = $multicall();