PHPackages                             btafoya/fxmlrpc - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. btafoya/fxmlrpc

ActiveLibrary[API Development](/categories/api)

btafoya/fxmlrpc
===============

Fast and tiny XML/RPC client with bridges for various HTTP clients

1.0.0(7y ago)0171MITPHP

Since Dec 3Pushed 7y ago1 watchersCompare

[ Source](https://github.com/btafoya/fxmlrpc)[ Packagist](https://packagist.org/packages/btafoya/fxmlrpc)[ RSS](/packages/btafoya-fxmlrpc/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (8)Versions (13)Used By (1)

fxmlrpc: really fast XML/RPC for PHP [![Build Status](https://camo.githubusercontent.com/6b08e367af360f58e9bf1097c8e48b0481ff4a34841f596f9efaa913d23eee01/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6c7374726f6a6e792f66786d6c7270632e706e67)](http://travis-ci.org/lstrojny/fxmlrpc)
=====================================================================================================================================================================================================================================================================================================

[](#fxmlrpc-really-fast-xmlrpc-for-php-)

- A convenient, object oriented API (similar to the XML/RPC client in Zend Framework)
- Very fast serializing and parsing of the XML payloads involved
- Stick to the HTTP client you already use: Buzz, ZF1/ZF2 HTTP client, Guzzle, PECL HTTP
- Licensed under the terms of the liberal MIT license
- Supports modern standards: easy installation via composer, fully PSR-0, PSR-1 and PSR-2 compatible
- Relentlessly unit- and integration tested
- Implements all known XML/RPC extensions

Latest improvements
-------------------

[](#latest-improvements)

- `[BUG]` Fixing huge issue in `XmlWriterSerializer` (see #4 for details)
- `[FEATURE]` Special API for multicall
- `[FEATURE]` Supports all Java XML/RPC extensions
- `[BC]` `fXmlRpc\AbstractDecorator` and `fXmlRpc\ClientInterface` now includes methods to prepend and append parameters
- `[BC]` `fXmlRpc\Client` is marked as final. Properties marked as private. Extend via decorator.
- `[BC]` Marked deprecated constructor of `fXmlRpc\Value\Base64` as private. Additionally, the value object is final now
- `[TESTING]` Integration test suite against Java XML/RPC and Python XML/RPC
- `[BUG]` Fixing implicit string type handling (where string is no child of value)
- `[IMPROVEMENT]` Improved exception handling
- `[BC]` Changing naming scheme to studly caps
- `[BUG]` Fixing various array/struct edge cases
- `[IMPROVEMENT]` Small memory and performance improvements for serializers and parsers
- `[BC]` Deprecated constructor of `fXmlRpc\Value\Base64` and introduced `::serialize()` an `::deserialize()` instead.
- `[FEATURE]` Adding `fXmlRpc\Client::prependParams()` and `fXmlRpc\Client::appendParams()` to set default params. This helps e.g. when you need to add authorization information for every call
- `[FEATURE]` Timing Loggers now support threshold based logging to ease controlling your servers responds in a certain time
- `[TESTING]` Travis now runs the test suite against various versions of supported HTTP clients and logging components.

### How fast is it really?

[](#how-fast-is-it-really)

IO performance is out of reach from a userspace perspective, but parsing and serialization speed is what matters. How fast can we generate the XML payload from PHP data structures and how fast can we parse the servers response? fXmlRpc uses stream based XML writers/readers to achieve it’s performance and heavily optimizes (read uglifies) for it. As as result the userland version is only around 2x slower than the native C implementation (ext/xmlrpc).

#### Parser

[](#parser)

```
Zend\XmlRpc\Value (ZF2): 249.02972793579 sec
Zend_XmlRpc_Value (ZF1): 253.88145494461 sec
fXmlRpc\Parser\XmlReaderParser: 36.274516105652 sec
fXmlRpc\Parser\NativeParser: 18.652323007584 sec

```

#### Serializer

[](#serializer)

```
Zend\XmlRpc\Request (ZF2): 52.004573106766 sec
Zend_XmlRpc_Request (ZF1): 65.042532920837 sec
fXmlRpc\Serializer\XmlWriterSerializer: 23.652673006058 sec
fXmlRpc\Serializer\NativeSerializer: 9.0790779590607 sec

```

### Usage

[](#usage)

#### Basic Usage

[](#basic-usage)

```
