2017 © Pedro Peláez
 

library json-rpc-ssh

SSH client and server for JSON-RPC 2.0

image

datto/json-rpc-ssh

SSH client and server for JSON-RPC 2.0

  • Friday, June 26, 2015
  • by smortensen
  • Repository
  • 2 Watchers
  • 4 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 17 % Grown

The README.md

JSON-RPC for PHP

Features

  • Fully compliant with the JSON-RPC 2.0 specifications (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

  • PHP >= 5.3

License

This package is released under an open-source license: LGPL-3.0, (*1)

Examples

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

$translator = new Translator();

$server = new Server($translator);

$server->reply();

See the "examples" folder for ready-to-use examples., (*2)

Installation

If you're using Composer, you can use this package (datto/json-rpc-ssh) by inserting a line into the "require" section of your "composer.json" file:, (*3)

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

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:, (*4)

    php examples/client.php
    
  2. Once your example is working, replace the example "Server" code with your own code., (*5)

  3. Write a beautiful wrapper around the JSON-RPC client class that will dovetail with your project., (*6)

Author

Spencer Mortensen, (*7)

The Versions

26/06 2015

dev-master

9999999-dev http://datto.com

SSH client and server for JSON-RPC 2.0

  Sources   Download

LGPL-3.0

The Requires

 

by Matt Coleman

php json server client ssh json-rpc jsonrpc rpc php-json-rpc

22/05 2015

1.0.0

1.0.0.0 http://datto.com

SSH client and server for JSON-RPC 2.0

  Sources   Download

LGPL-3.0

The Requires

 

by Matt Coleman

php json server client ssh json-rpc jsonrpc rpc php-json-rpc