antanasga/xmlrpcclient

Easy way to make XMLRPC client requests

Installs: 14

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/antanasga/xmlrpcclient

v0.1.0 2021-06-25 09:29 UTC

This package is auto-updated.

Last update: 2025-10-25 18:49:31 UTC


README

Easy way to make XMLRPC client requests

Documentation

instalation

installation using composer:

"require": {
    "AntanasGa/XmlRpcClient": "^0.1.0"
}

Usage

Interfaces trough Client class.

__construct - takes string value of server URL and request timeout time in seconds (default is 30 secs) __call - call is used for sending requests to XMLRPC server, method name sets <methodname> errorInfo - method returns AntanasGa\XmlRpcDecode\ResponseError object with faultCode and faultString values

use AntanasGa\XmlRpcClient\Client;

$connection = new Client('http://localhost:8069');
$response = $connection->posts('search');

if ($connection->errorInfo() !== null) {
    // handle error
}