PHPackages                             json-rpc-lib/json-rpc-lib - 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. json-rpc-lib/json-rpc-lib

ActiveLibrary[API Development](/categories/api)

json-rpc-lib/json-rpc-lib
=========================

JSON-RPC Server/Client for PHP 5.3

35791PHP

Since Jun 30Pushed 12y ago2 watchersCompare

[ Source](https://github.com/marcinsoja/php-json-rpc)[ Packagist](https://packagist.org/packages/json-rpc-lib/json-rpc-lib)[ RSS](/packages/json-rpc-lib-json-rpc-lib/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (3)Used By (0)

PHP JSON-RPC Lib
================

[](#php-json-rpc-lib)

\##Build Status

[![Build Status](https://camo.githubusercontent.com/c31c92328b6d8e7df342773ec613fced8aab65eae67182e9776af1cea4604ae8/68747470733a2f2f7472617669732d63692e6f72672f6d617263696e736f6a612f7068702d6a736f6e2d7270632e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/marcinsoja/php-json-rpc)

Version
-------

[](#version)

The current version is considered Beta. This means that it is ready enough to test and use, but beware that you should update frequently.

As this software is BETA, Use at your own risk!

About
-----

[](#about)

JSON-RPC Server/Client for PHP 5.3

Installation
------------

[](#installation)

### PHAR

[](#phar)

[Download](https://s3-eu-west-1.amazonaws.com/php-json-rpc/JsonRpcLib.phar) the latest phar build. Then, just require the phar in your code!

`require_once '/path/to/JsonRpcLib.phar';`

### Composer

[](#composer)

Add a `composer.json` file to your project with the following:

```
{
    "require": {
        "json-rpc-lib/json-rpc-lib": "dev-master"
    }
}
```

Then, inside that folder, just run `php composer.phar install`.

Then, in your code, just use the composer autoloader:

`require_once 'vendor/autoload.php';`

That's it!

Usage - Server
--------------

[](#usage---server)

Most use-cases can simply use the root `JsonRpcLib\Server\Server` class.

```
