{"id":18832651,"url":"https://github.com/datto/php-json-rpc-ssh","last_synced_at":"2025-04-14T04:30:27.602Z","repository":{"id":32511528,"uuid":"36092559","full_name":"datto/php-json-rpc-ssh","owner":"datto","description":"SSH client and server for JSON-RPC 2.0","archived":false,"fork":false,"pushed_at":"2015-06-26T19:22:20.000Z","size":140,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-27T18:21:24.297Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-22T19:58:29.000Z","updated_at":"2024-12-16T16:14:17.000Z","dependencies_parsed_at":"2022-09-12T19:03:58.923Z","dependency_job_id":null,"html_url":"https://github.com/datto/php-json-rpc-ssh","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datto%2Fphp-json-rpc-ssh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datto%2Fphp-json-rpc-ssh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datto%2Fphp-json-rpc-ssh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datto%2Fphp-json-rpc-ssh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datto","download_url":"https://codeload.github.com/datto/php-json-rpc-ssh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248821607,"owners_count":21166910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T01:58:37.459Z","updated_at":"2025-04-14T04:30:27.568Z","avatar_url":"https://github.com/datto.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSON-RPC for PHP\n\n## Features\n\n* Fully compliant with the [JSON-RPC 2.0 specifications](http://www.jsonrpc.org/specification) (with 100% unit-test coverage)\n* Flexible: you can choose your own system for interpreting the JSON-RPC method strings\n* Minimalistic (just two tiny files)\n* Ready to use, with working examples\n\n## Requirements\n\n* PHP \u003e= 5.3\n\n## License\n\nThis package is released under an open-source license: [LGPL-3.0](https://www.gnu.org/licenses/lgpl-3.0.html)\n\n## Examples\n\n### Client\n\n```php\n$client = new Client($destination, $command, $options);\n\n$client-\u003equery(1, 'add', array(1, 2));\n\n$reply = $client-\u003esend(); // array('jsonrpc' =\u003e '2.0', 'id' =\u003e 1, 'result' =\u003e 3)\n```\n\n### Server\n\n```php\n$translator = new Translator();\n\n$server = new Server($translator);\n\n$server-\u003ereply();\n```\n\n*See the \"examples\" folder for ready-to-use examples.*\n\n## Installation\n\nIf you're using [Composer](https://getcomposer.org/), you can use this package\n([datto/json-rpc-ssh](https://packagist.org/packages/datto/json-rpc-ssh))\nby inserting a line into the \"require\" section of your \"composer.json\" file:\n```\n        \"datto/json-rpc-ssh\": \"~1.0\"\n```\n\n\n## Getting started\n\n1. Try the examples! Follow the README file in the \"examples\" directory to\nset up an SSH environment. Then run the examples from the project directory\nlike this:\n\t```\n\tphp examples/client.php\n\t```\n\n2. Once your example is working, replace the\n[example \"Server\" code](https://github.com/datto/php-json-rpc-ssh/tree/master/examples/Server)\nwith your own code.\n\n3. Write a beautiful wrapper around the JSON-RPC client class that will dovetail\nwith your project.\n\n## Author\n\n[Spencer Mortensen](http://spencermortensen.com/contact/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatto%2Fphp-json-rpc-ssh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatto%2Fphp-json-rpc-ssh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatto%2Fphp-json-rpc-ssh/lists"}