{"id":41306317,"url":"https://github.com/findsomething/syar","last_synced_at":"2026-01-23T05:03:54.358Z","repository":{"id":62507803,"uuid":"78756979","full_name":"findsomething/syar","owner":"findsomething","description":"swoole + yar + tcp","archived":false,"fork":false,"pushed_at":"2017-12-04T15:12:07.000Z","size":53,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-06T17:15:33.218Z","etag":null,"topics":["rpc","swoole","tcp","yar"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/findsomething.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-12T15:04:58.000Z","updated_at":"2023-11-14T05:47:30.000Z","dependencies_parsed_at":"2022-11-02T12:46:00.987Z","dependency_job_id":null,"html_url":"https://github.com/findsomething/syar","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/findsomething/syar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findsomething%2Fsyar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findsomething%2Fsyar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findsomething%2Fsyar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findsomething%2Fsyar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/findsomething","download_url":"https://codeload.github.com/findsomething/syar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findsomething%2Fsyar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28680623,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T04:33:33.518Z","status":"ssl_error","status_checked_at":"2026-01-23T04:33:30.433Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["rpc","swoole","tcp","yar"],"created_at":"2026-01-23T05:03:54.296Z","updated_at":"2026-01-23T05:03:54.352Z","avatar_url":"https://github.com/findsomething.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## syar \n\n### 说明\n1. 用swoole+yar实现了一个简单的rpc调用 目前只实现了单次调用(数据解析部分借鉴了https://github.com/stcer/syar thx)\n2. tcp 初步实现了一个类似的rpc调用\n\n### 使用方法\n\n* 启动服务端:\nbin/server run|start|stop|restart config/server.php\n\n* 启动带tcp与http的服务端 :\nbin/server run|start|stop|restart config/multi-server.php\n\n\n\n### 测试\nhttp\n```\n$client = new \\Yar_client(\"http://127.0.0.1:9503/?service=TestService\");\n$params = array('hello' =\u003e 'world');\n$result = $client-\u003egiveBack($params);\n```\n\ntcp\n```\n$client = new \\FSth\\SYar\\Client\\Client('127.0.0.1', '9504', 'TestService');\n$result = $client-\u003egiveBack(['hello' =\u003e 'world']);\n```\n\n### changelog\n* 2017-03-17 v0.1.4\n```\nadd rpc with tcp protocol\n```\n\n* 2017-05-15 v0.2.0\n```\nadd cmd Ø\n```\n\n* 2017-07-06 v0.3.0\n```\nadd zipKin support\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffindsomething%2Fsyar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffindsomething%2Fsyar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffindsomething%2Fsyar/lists"}