JSON-RPC for PHP

Introduction

Welcome to the homepage of "JSON-RPC for PHP". It is a library implementing the JSON-RPC protocol, written in PHP. It is also known as PHPJSONRPC.
It is designed for ease of use, flexibility and completeness. High speed and reduced memory footprint are not the main goals of the project.

JSON-RPC is a format used for achieving remote procedure calls via JSON using HTTP as the transport. JSON-RPC has its own website, https://www.jsonrpc.org/

Main Features

Not (yet?) implemented

Requirements

The library has been designed with goals of flexibility and backward compatibility. As such, it supports a wide range of PHP installs. Note that not all features of the lib are available in every configuration.

Download

For the latest release, check out the Releases page on GitHub.

License

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

News

The latest stable release is version 1.0.1 released on Nov. 12, 2025 (Release notes)

Documentation

API manual

Automatically generated API docs are available online.
A good way to get started with API usage is to take a look at the demo source code, showcasing both Client and Server use cases.

PHPXMLRPC user manual

The PHPXMLRPC library, which this library extends, comes with an extended user manual. Many of the concepts exposed in it also apply to the JSON-RPC codebase. It can be viewed online or downloaded in pdf format from GitHub

Release Notes

The description of changes in each release is available as part of the distribution. It is also accessible online.

Changelogs

Detailed changelogs are available on GitHub for all releases starting with 1.0-alpha.

Online demo server

A demo server is active at the address https://tanoconsulting.com/sw/jsonrpc/demo/server/server.php. It exposes functions that can be used for interoperability testing (the full code for the server is included in the Git version of the library).

Online json-rpc debugger

A demo json-rpc plus xml-rpc debugger application, built on top of this library, is active at the address https://tanoconsulting.com/sw/jsonrpc/debugger/.
You can use the debugger to e.g. query the demo server, or debug your own personal xml-rpc server, if it is accessible on the net.
If your json-rpc server is not accessible from the internet, we recommend using the Container version of the debugger.

Support

JSON-RPC for PHP is offered "as-is" without any warranty or commitment to support. However, informal advice and help is available via the JSON-RPC for PHP website.

Online Support

Bugs, feature requests and patches can be posted to the project's development website.

Contact

For security related issues feel free to contact ggiunta at users.sourceforge.net

Development

Source code, bug tracker, pull requests, releases are all managed on GitHub

Roadmap

See the list of issues on Github


Page last updated: 2025/11/12