PHPackages                             antanasga/xmlrpcencode - 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. antanasga/xmlrpcencode

ActiveLibrary

antanasga/xmlrpcencode
======================

Easy way to encode XMLRPC requests

v0.1.2(4y ago)128[1 issues](https://github.com/AntanasGa/XmlRpcEncode/issues)2MITPHPPHP &gt;=7.0.0

Since Jun 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/AntanasGa/XmlRpcEncode)[ Packagist](https://packagist.org/packages/antanasga/xmlrpcencode)[ RSS](/packages/antanasga-xmlrpcencode/feed)WikiDiscussions main Synced 6d ago

READMEChangelog (3)DependenciesVersions (4)Used By (2)

XmlRpcEncode
============

[](#xmlrpcencode)

Easy way to encode XMLRPC calls

Documentation
-------------

[](#documentation)

### Table of Contents

[](#table-of-contents)

- [Usage](#Usage)
- [As Request](#As-Request)
- [As Response](#As-Response)
- [As Error Message](#As-Error)

### Installation

[](#installation)

installing using composer: `composer.json`:

```
"require": {
    "antanasga/xmlrpcencode": "^0.1.2"
}
```

In terminal:

```
$ composer require antanasga/xmlrpcencode

```

### Notes

[](#notes)

- The only parced object is `DateTime`
- When specific type is required use `([type name])`
    - Example: `(float) 1`, returns `1.000000`. Keep in mind `float` fits XMLRPC spec as `double`

[Back To top](#Documentation)

### Usage

[](#usage)

#### As request

[](#as-request)

Request:

```
$e = new Encode(
    [
        'hello-world',
        [
            "int" => 1,
            "double" => 1.1,
            "bool" => true,
            "string" => "one",
            "datetime" => new DateTime(),
            "array" => [1, "one", false]
        ],
        Encode::base64('Hello world') // PHP has no base64 object so we call it like that
    ],
    'execute'
);

echo $e;
```

Output:

```

  execute

        hello-world

            int

              1

            double

              1.100000

            bool

              1

            string

              one

            datetime

              2021-06-25T06:39:12+0000

            array

                    1

                    one

                    0

        SGVsbG8gd29ybGQ=

```

[Back To top](#Documentation)

#### As response

[](#as-response)

Request:

```
$e = new Encode(
    [
        'hello-world',
        [
            "int" => 1,
            "double" => 1.1,
            "bool" => true,
            "string" => "one",
            "datetime" => new DateTime(),
            "array" => [1, "one", false]
        ],
        Encode::base64('Hello world')
    ],
);

echo $e;
```

Output:

```

        hello-world

            int

              1

            double

              1.100000

            bool

              1

            string

              one

            datetime

              2021-06-25T06:45:04+0000

            array

                    1

                    one

                    0

        SGVsbG8gd29ybGQ=

```

[Back To top](#Documentation)

#### As Error

[](#as-error)

Request:

```
$f = Encode::encodeFault('Does not exist', 'no backtrace');

echo $f;
```

Output:

```

        faultCode

          Does not exist

        faultString

          no backtrace

```

[Back To top](#Documentation)

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~19 days

Total

3

Last Release

1749d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7c0f69c5774e1cdaca82a30a4882a3e9f6aec5b9417fe8c2cb2474f99eced119?d=identicon)[AntanasGa](/maintainers/AntanasGa)

---

Top Contributors

[![AntanasGa](https://avatars.githubusercontent.com/u/36157682?v=4)](https://github.com/AntanasGa "AntanasGa (1 commits)")

### Embed Badge

![Health badge](/badges/antanasga-xmlrpcencode/health.svg)

```
[![Health](https://phpackages.com/badges/antanasga-xmlrpcencode/health.svg)](https://phpackages.com/packages/antanasga-xmlrpcencode)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
