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
Requires
- php: >=7.0.0
- antanasga/xmlrpcdecode: ^0.1.1
- antanasga/xmlrpcencode: ^0.1.1
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 }