{"id":17881279,"url":"https://github.com/sjonhortensius/toobasic-rpc","last_synced_at":"2025-10-08T10:40:40.956Z","repository":{"id":146688309,"uuid":"66016282","full_name":"SjonHortensius/TooBasic-Rpc","owner":"SjonHortensius","description":"A very basic Json \u0026XmlRpcClient for PHP, with SCGI support","archived":false,"fork":false,"pushed_at":"2017-07-30T15:10:04.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-18T21:40:35.788Z","etag":null,"topics":["json-rpc-client","scgi","xml-rpc-client"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SjonHortensius.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2016-08-18T17:12:57.000Z","updated_at":"2025-05-19T11:47:44.000Z","dependencies_parsed_at":"2023-04-15T02:46:49.726Z","dependency_job_id":null,"html_url":"https://github.com/SjonHortensius/TooBasic-Rpc","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/SjonHortensius/TooBasic-Rpc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SjonHortensius%2FTooBasic-Rpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SjonHortensius%2FTooBasic-Rpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SjonHortensius%2FTooBasic-Rpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SjonHortensius%2FTooBasic-Rpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SjonHortensius","download_url":"https://codeload.github.com/SjonHortensius/TooBasic-Rpc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SjonHortensius%2FTooBasic-Rpc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278931652,"owners_count":26070788,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["json-rpc-client","scgi","xml-rpc-client"],"created_at":"2024-10-28T12:36:21.026Z","updated_at":"2025-10-08T10:40:35.948Z","avatar_url":"https://github.com/SjonHortensius.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Contains a JSON-RPC and XML-RPC client; with support for SCGI. Any method the server supports (eg. `getInfo` below), can be called as a method on the client. Here's an example how to use it to connect to bitcoin:\n\n```php\n\u003c?php\nspl_autoload_register(function($class){\n\t$class = str_replace('\\\\', '/', $class);\n\tif (0 === strpos($class, 'TooBasic/Rpc/'))\n\t\trequire(__DIR__ .'/TooBasic-Rpc/'. substr($class, strlen('TooBasic/Rpc/')) .'.php');\n});\n\n$curl = new TooBasic\\Rpc\\Transport\\Curl;\n$client = new TooBasic\\Rpc\\Client\\Json('http://rpcUser:rpcPassword@rpcHost:rpcPort/', $curl);\n\nprint_r($client-\u003egetinfo());\n```\n\nHere's an example how Transports can be chained for example for utorrent, to perform XMLRPC requests over SCGI:\n\n```php\n\u003c?php\n// add spl_autoload_register magic\n\n$scgi = new TooBasic\\Rpc\\Transport\\Scgi(new TooBasic\\Rpc\\Transport\\Socket);\n$client = new TooBasic\\Rpc\\Client\\Xml('raw://127.0.0.1:5000/RPC2', $scgi);\n\nprint_r($client-\u003esystem-\u003elistMethods());\n```\nHere's an example how to connect to ethereum over json-rpc:\n```php\n\u003c?php\n// add spl_autoload_register magic\n\n$curl = new TooBasic\\Rpc\\Transport\\Curl;\n$client = new TooBasic\\Rpc\\Client\\Json2('http://127.0.0.1:8545', $curl);\n\nprint_r($client-\u003eeth_syncing());\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjonhortensius%2Ftoobasic-rpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsjonhortensius%2Ftoobasic-rpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjonhortensius%2Ftoobasic-rpc/lists"}