PHPackages                             datto/json-rpc-ssh - 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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. datto/json-rpc-ssh

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

datto/json-rpc-ssh
==================

SSH client and server for JSON-RPC 2.0

1.0.0(10y ago)77081LGPL-3.0PHPPHP &gt;=5.3.0

Since May 22Pushed 10y ago2 watchersCompare

[ Source](https://github.com/datto/php-json-rpc-ssh)[ Packagist](https://packagist.org/packages/datto/json-rpc-ssh)[ Docs](http://datto.com)[ RSS](/packages/datto-json-rpc-ssh/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

JSON-RPC for PHP
================

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

Features
--------

[](#features)

- Fully compliant with the [JSON-RPC 2.0 specifications](http://www.jsonrpc.org/specification) (with 100% unit-test coverage)
- Flexible: you can choose your own system for interpreting the JSON-RPC method strings
- Minimalistic (just two tiny files)
- Ready to use, with working examples

Requirements
------------

[](#requirements)

- PHP &gt;= 5.3

License
-------

[](#license)

This package is released under an open-source license: [LGPL-3.0](https://www.gnu.org/licenses/lgpl-3.0.html)

Examples
--------

[](#examples)

### Client

[](#client)

```
$client = new Client($destination, $command, $options);

$client->query(1, 'add', array(1, 2));

$reply = $client->send(); // array('jsonrpc' => '2.0', 'id' => 1, 'result' => 3)
```

### Server

[](#server)

```
$translator = new Translator();

$server = new Server($translator);

$server->reply();
```

*See the "examples" folder for ready-to-use examples.*

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

[](#installation)

If you're using [Composer](https://getcomposer.org/), you can use this package ([datto/json-rpc-ssh](https://packagist.org/packages/datto/json-rpc-ssh)) by inserting a line into the "require" section of your "composer.json" file:

```
        "datto/json-rpc-ssh": "~1.0"

```

Getting started
---------------

[](#getting-started)

1. Try the examples! Follow the README file in the "examples" directory to set up an SSH environment. Then run the examples from the project directory like this:

    ```
    php examples/client.php

    ```
2. Once your example is working, replace the [example "Server" code](https://github.com/datto/php-json-rpc-ssh/tree/master/examples/Server)with your own code.
3. Write a beautiful wrapper around the JSON-RPC client class that will dovetail with your project.

Author
------

[](#author)

[Spencer Mortensen](http://spencermortensen.com/contact/)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

4014d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fb044681aa172ced7a03b093bda1f1f1031831133281d3d1e036807d28260c31?d=identicon)[datto-packagist-maintainer](/maintainers/datto-packagist-maintainer)

---

Top Contributors

[![smortensen](https://avatars.githubusercontent.com/u/2285119?v=4)](https://github.com/smortensen "smortensen (7 commits)")

---

Tags

phpjsonclientsshrpcserverjsonrpcjson-rpcphp-json-rpc

### Embed Badge

![Health badge](/badges/datto-json-rpc-ssh/health.svg)

```
[![Health](https://phpackages.com/badges/datto-json-rpc-ssh/health.svg)](https://phpackages.com/packages/datto-json-rpc-ssh)
```

###  Alternatives

[datto/json-rpc-http

HTTP client and server for JSON-RPC 2.0

66525.9k5](/packages/datto-json-rpc-http)[datto/json-rpc

Fully unit-tested JSON-RPC 2.0 for PHP

1951.3M14](/packages/datto-json-rpc)[thiagof/laravelrpc

JsonRPC Client/Server services for Laravel 5

337.5k](/packages/thiagof-laravelrpc)

PHPackages © 2026

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