{"id":18832630,"url":"https://github.com/datto/php-json-rpc-http","last_synced_at":"2025-04-07T06:10:27.229Z","repository":{"id":32508896,"uuid":"36089904","full_name":"datto/php-json-rpc-http","owner":"datto","description":"HTTP client and server for JSON-RPC 2.0","archived":false,"fork":false,"pushed_at":"2024-04-24T17:05:31.000Z","size":80,"stargazers_count":60,"open_issues_count":7,"forks_count":24,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-31T04:08:08.190Z","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":"CHANGELOG.md","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-05-22T18:56:17.000Z","updated_at":"2025-03-08T11:45:04.000Z","dependencies_parsed_at":"2024-06-18T14:07:39.657Z","dependency_job_id":null,"html_url":"https://github.com/datto/php-json-rpc-http","commit_stats":{"total_commits":46,"total_committers":3,"mean_commits":"15.333333333333334","dds":0.04347826086956519,"last_synced_commit":"db15a075f3562c4e8d297b9082acc5b2869bd4b4"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datto%2Fphp-json-rpc-http","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datto%2Fphp-json-rpc-http/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datto%2Fphp-json-rpc-http/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datto%2Fphp-json-rpc-http/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datto","download_url":"https://codeload.github.com/datto/php-json-rpc-http/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247601448,"owners_count":20964864,"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:34.329Z","updated_at":"2025-04-07T06:10:27.212Z","avatar_url":"https://github.com/datto.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSON-RPC over HTTP(S) for PHP\n\n## Overview\n\nThis package allows you to set up a JSON-RPC client and/or server over HTTP(S),\nusing your own PHP code to evaluate the requests.\n\nThis package abstracts away the details of the JSON-RPC messaging format and\nthe HTTP(S) headers that are necessary for the client and server to communicate\nsuccessfully.\n\nYou're free to use your own library to handle the requests. Likewise, you're free\nto route requests to your server endpoint through any system that you prefer!\n(See the \"examples\" folder for ready-to-use examples.)\n\nThis package allows you to communicate with a URL endpoint: If don't need to\nsend or receive HTTP(S) headers, but just want to abstract away the internal\nJSON-RPC messaging format, then you should use the\n[php-json-rpc](https://github.com/datto/php-json-rpc) package instead.\n\n\n## Features\n\n* Correct: fully compliant with the [JSON-RPC 2.0 specifications](http://www.jsonrpc.org/specification)\n* Reliable: works in all environments (even when CURL is not installed)\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\n## Examples\n\n### Client\n\n```php\n$client = new Client('http://api.example.com');\n\n$client-\u003equery(1, 'add', array(1, 2));\n\n$reply = $client-\u003esend();\n```\n\n### Server\n\n```php\n$api = new Api();\n\n$server = new Server($api);\n\n$server-\u003ereply();\n```\n\n*See the \"examples\" folder for more examples.*\n\n\n## Requirements\n\n* PHP \u003e= 7.0\n\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\n## Installation\n\nIf you're using [Composer](https://getcomposer.org/), you can include this library\n([datto/json-rpc-http](https://packagist.org/packages/datto/json-rpc-http)) like this:\n```\ncomposer require \"datto/json-rpc-http\"\n```\n\n\n## Getting started\n\n1. Try the examples: Look in the \"examples\" directory and follow the README\ninstructions.\n\n2. After you've successfully run an example, replace the example \"src\" code\nwith your own code.\n\n3. Call the new API from within your own project!\n\n\n## Changelog\n\nSee what has changed:\n[Changelog](https://github.com/datto/php-json-rpc-http/blob/master/CHANGELOG.md)\n\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-http","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatto%2Fphp-json-rpc-http","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatto%2Fphp-json-rpc-http/lists"}