PHPackages                             phpxmlrpc/jsonrpc - 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. phpxmlrpc/jsonrpc

ActiveLibrary[API Development](/categories/api)

phpxmlrpc/jsonrpc
=================

A php library for building jsonrpc clients and servers

1.0.1(7mo ago)22.0k21BSD-3-ClausePHPPHP ^5.4.0 || ^7.0 || ^8.0CI passing

Since Jan 5Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/gggeek/phpxmlrpc-jsonrpc)[ Packagist](https://packagist.org/packages/phpxmlrpc/jsonrpc)[ Docs](https://gggeek.github.io/phpxmlrpc-jsonrpc/)[ RSS](/packages/phpxmlrpc-jsonrpc/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (4)Versions (6)Used By (1)

JSON-RPC for PHP (a.k.a. PHPJSONRPC)
====================================

[](#json-rpc-for-php-aka-phpjsonrpc)

A php library for building json-rpc clients and servers.

Originally bundled as part of the [phpxmlrpc/extras](https://github.com/gggeek/phpxmlrpc-extras) package.

It supports both version 2.0 and 1.0 of the JSON-RPC protocol *over HTTP*.

Requirements and Installation
-----------------------------

[](#requirements-and-installation)

- PHP &gt;= 5.4.0
- PHP Json extension
- phpxmlrpc/phpxmlrpc &gt;= 4.11.4 (currently requires the master branch tip)

The recommended way to install this library is using Composer.

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

[](#documentation)

- See the documentation page at [gggeek.github.io/phpxmlrpc-jsonrpc](https://gggeek.github.io/phpxmlrpc-jsonrpc)for a list of the library main features, **known limitations** and all project related information, including information about online resources such as debuggers and demo servers.
- Automatically-generated documentation for the API is available online at
- You are encouraged to look also at the code examples found in the demo/ directory.

    Note: to reduce the size of the download, the demo files are not part of the default package installed with Composer. You can either check them out online at , download them as a separate tarball from  or make sure they are available locally by installing the library using Composer option `--prefer-install=source`. Whatever the method chosen, make sure that the demo folder is not directly accessible from the internet, i.e. it is not within the webserver root directory).

Extras
------

[](#extras)

- This library does include a visual debugger which can be used to troubleshoot connections to 3rd party json-rpc servers. In case you'd like to use the debugger but do not have a working PHP installation, you can run it standalone as a Container image. Instructions can be found at
- A companion PHP library, which adds support for JSON-RPC servers to automatically generate API documentation, and more, is available at
- Last but not least, a Javascript library, implementing both XML-RPC and JSON-RPC clients using a very similar API, is available at

License
-------

[](#license)

Use of this software is subject to the terms in the [license.txt](license.txt) file

[![License](https://camo.githubusercontent.com/9013db4684ca5d1b700a2a04f966afee0d72d13b1ed4d95f7c646d956241036f/68747470733a2f2f706f7365722e707567782e6f72672f706870786d6c7270632f6a736f6e7270632f6c6963656e7365)](https://packagist.org/packages/phpxmlrpc/jsonrpc)[![Latest Stable Version](https://camo.githubusercontent.com/152e0a970dddea105012cf16c6e0080948766243f46e75d3b2c6948656ee601e/68747470733a2f2f706f7365722e707567782e6f72672f706870786d6c7270632f6a736f6e7270632f762f737461626c65)](https://packagist.org/packages/phpxmlrpc/jsonrpc)[![Total Downloads](https://camo.githubusercontent.com/7860f7cd811472718fcf9fc58c4852e7b24123fed8863e7f12e77eda0226791d/68747470733a2f2f706f7365722e707567782e6f72672f706870786d6c7270632f6a736f6e7270632f646f776e6c6f616473)](https://packagist.org/packages/phpxmlrpc/jsonrpc)

[![Build Status](https://github.com/gggeek/phpxmlrpc-jsonrpc/actions/workflows/ci.yaml/badge.svg)](https://github.com/gggeek/phpxmlrpc-jsonrpc/actions/workflows/ci.yaml)[![Code Coverage](https://camo.githubusercontent.com/83dff147d491eb3af0d6584355964af6df2d6a55142e2fa4fa171e24e6367dcc/68747470733a2f2f636f6465636f762e696f2f67682f67676765656b2f706870786d6c7270632d6a736f6e7270632f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://app.codecov.io/gh/gggeek/phpxmlrpc-jsonrpc)

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance62

Regular maintenance activity

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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 ~442 days

Total

5

Last Release

234d ago

PHP version history (2 changes)1.0.0-alphaPHP ^5.3.0 || ^7.0 || ^8.0

1.0.0-beta2PHP ^5.4.0 || ^7.0 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/f641f7d6edabf83c56f6c4998b04e6c59a00b46bf51ca6699c31b09f9c948677?d=identicon)[gggeek](/maintainers/gggeek)

---

Top Contributors

[![gggeek](https://avatars.githubusercontent.com/u/308634?v=4)](https://github.com/gggeek "gggeek (195 commits)")

---

Tags

apijsonrpcphprpcjsonrpcwebservices

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/phpxmlrpc-jsonrpc/health.svg)

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

###  Alternatives

[phpxmlrpc/phpxmlrpc

A php library for building xmlrpc clients and servers

2435.3M48](/packages/phpxmlrpc-phpxmlrpc)[njasm/soundcloud

Soundcloud API Wrapper written in PHP with OAuth 2.0 support

100165.4k2](/packages/njasm-soundcloud)[drlecks/simple-web3-php

Web3 library in PHP

7744.0k2](/packages/drlecks-simple-web3-php)[sergeyfast/eazy-jsonrpc

PHP JSON-RPC 2.0 Server/Client Implementation with SMD &amp; Swagger support

6164.3k](/packages/sergeyfast-eazy-jsonrpc)[obuchmann/odoo-jsonrpc

PHP Odoo Json-RPC connector, prepared for laravel integration

6256.8k1](/packages/obuchmann-odoo-jsonrpc)[tochka-developers/jsonrpc

JsonRpc extension for Laravel

2934.2k2](/packages/tochka-developers-jsonrpc)

PHPackages © 2026

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