{"id":25420282,"url":"https://github.com/starlight36/yar-client-java","last_synced_at":"2025-09-15T07:19:52.043Z","repository":{"id":34273170,"uuid":"38160351","full_name":"starlight36/yar-client-java","owner":"starlight36","description":"A Java client for Yar RPC framework.","archived":false,"fork":false,"pushed_at":"2016-01-25T06:09:01.000Z","size":54,"stargazers_count":47,"open_issues_count":0,"forks_count":12,"subscribers_count":10,"default_branch":"master","last_synced_at":"2023-08-04T18:24:08.172Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/starlight36.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-2.0.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-27T13:05:47.000Z","updated_at":"2023-06-23T14:26:30.000Z","dependencies_parsed_at":"2022-09-09T19:01:32.088Z","dependency_job_id":null,"html_url":"https://github.com/starlight36/yar-client-java","commit_stats":null,"previous_names":[],"tags_count":4,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starlight36%2Fyar-client-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starlight36%2Fyar-client-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starlight36%2Fyar-client-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starlight36%2Fyar-client-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/starlight36","download_url":"https://codeload.github.com/starlight36/yar-client-java/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239188331,"owners_count":19597027,"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":"2025-02-16T19:37:06.014Z","updated_at":"2025-02-16T19:37:06.816Z","avatar_url":"https://github.com/starlight36.png","language":"Java","funding_links":[],"categories":["开发框架"],"sub_categories":["RPC框架"],"readme":"# Yar RPC Client for Java\n\n[![Build Status](https://travis-ci.org/starlight36/yar-client-java.png?branch=master)](https://travis-ci.org/starlight36/yar-client-java)\n[![Coverage Status](https://coveralls.io/repos/starlight36/yar-client-java/badge.svg)](https://coveralls.io/r/starlight36/yar-client-java)\n[![JitPack](https://img.shields.io/github/tag/starlight36/yar-client-java.svg?label=JitPack)](https://jitpack.io/#starlight36/yar-client-java/v0.1.4)\n\nA simple Java client for [Yar RPC framework](https://github.com/laruence/yar).\n\n## Introduction\n\nYar is a light RPC framework for PHP written by Laruence. \nIf you are looking for a Java client for Yar, this project may\nsolve your problems.\n\n## Usage\n\nUse this client is very simple, just few codes:\n\n```java\nYarClient client = new YarClient(\"http://localhost/yar.php\");\nInteger timestamp = client.call(\"doSomething\", Integer.class, \"Hello\");\nSystem.out.println(timestamp);\nclient.close();\n```\n\n## Downloads\n\n### Jar\n\nComing soon..\n\n### Maven\n\nAdd the JitPack repository to your build file.\n\n```xml\n\u003crepository\u003e\n    \u003cid\u003ejitpack.io\u003c/id\u003e\n    \u003curl\u003ehttps://jitpack.io\u003c/url\u003e\n\u003c/repository\u003e\n```\n\nAdd the dependency in the form.\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.starlight36\u003c/groupId\u003e\n    \u003cartifactId\u003eyar-client-java\u003c/artifactId\u003e\n    \u003cversion\u003ev0.1.4\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Build\n\nTo build this project, just use maven.\n\n```shell\nmvn clean package -Dmaven.test.skip=true\n```\n\n### Test\n\nTo test this project, you need to provide a php http server \nlistening on localhost:8095. `src/test/resources/yar.php` is the\nserver script.\n\nUse php build-in server is a good idea.\n\n```shell\nphp -ddate.timezone=PRC -dextension=yar.so -S 127.0.0.1:8095 -t src/test/resources\n```\n\n## Limitation\n\n* Native PHP packager is not support correctly.\n* Concurrent or asynchronous call is not support temporarily.\n* Only support HTTP transport, socket transport is planed.\n\n## Feedback\n\nIf you any questions, use [Issues](https://github.com/starlight36/yar-client-java/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarlight36%2Fyar-client-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstarlight36%2Fyar-client-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarlight36%2Fyar-client-java/lists"}