antanasga / xmlrpcdecode
Easy way to decode XMLRPC requests
Installs: 28
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/antanasga/xmlrpcdecode
Requires
- php: >=7.0.0
Requires (Dev)
- antanasga/xmlrpcencode: ^0.1.1
README
Easy way to decode XMLRPC requests
Documentation
Installation
installation using composer:
composer.json:
"require": { "antanasga/xmlrpcdecode": "^0.1.4" }
In terminal:
$ composer require antanasga/xmlrpcdecode
Usage
Interface trough Decode class.
__construct - takes string value of valid XML string, boolean value can be passed if there's a need for thrown error of fault codes
fetch - method returns value array
errorInfo - method returns ResponseError object with faultCode and faultString values
// ... $e = new Decode($validXMLString); var_dump($e->fetch()); if ($e->errorInfo() !== null) { die(); // your error handling }