antanasga / xmlrpcdecode
Easy way to decode XMLRPC requests
v0.1.4
2021-08-02 06:34 UTC
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 }